/* Modern Header Styles for TheGadgetsCentral */
/* Save as: css/tgc-header.css in your theme directory */

:root {
    --tgc-primary: #1a73e8;
    --tgc-secondary: #34a853;
    --tgc-dark: #202124;
    --tgc-light: #f8f9fa;
    --tgc-border: #e8eaed;
    --tgc-text: #3c4043;
    --tgc-text-light: #5f6368;
    --tgc-white: #ffffff;
    --tgc-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --tgc-radius: 8px;
    --tgc-transition: all 0.3s ease;
}

/* Dark mode variables */
[data-theme="dark"] {
    --tgc-primary: #4285f4;
    --tgc-secondary: #34a853;
    --tgc-dark: #ffffff;
    --tgc-light: #202124;
    --tgc-border: #3c4043;
    --tgc-text: #e8eaed;
    --tgc-text-light: #9aa0a6;
    --tgc-white: #292a2d;
    --tgc-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Header Container */
.tgc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--tgc-white);
    box-shadow: var(--tgc-shadow);
    transition: var(--tgc-transition);
}

.tgc-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.tgc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.tgc-top-bar {
    background: var(--tgc-primary);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.tgc-top-bar .tgc-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tgc-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tgc-date {
    font-weight: 500;
}

.tgc-breaking-news {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 400px;
}

.tgc-breaking-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.tgc-breaking-news marquee {
    font-size: 13px;
}

.tgc-social-links {
    display: flex;
    gap: 12px;
}

.tgc-social-link {
    color: white;
    font-size: 16px;
    transition: var(--tgc-transition);
    opacity: 0.8;
}

.tgc-social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Main Header */
.tgc-main-header {
    padding: 15px 0;
    background: var(--tgc-white);
}

.tgc-main-header .tgc-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styles */
.tgc-logo {
    flex-shrink: 0;
}

.tgc-logo img {
    height: 45px;
    width: auto;
}

.tgc-logo-text {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', sans-serif;
}

.tgc-logo-main {
    font-size: 28px;
    font-weight: 800;
    color: var(--tgc-primary);
}

.tgc-logo-sub {
    font-size: 28px;
    font-weight: 300;
    color: var(--tgc-text);
}

/* Search Bar */
.tgc-search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.tgc-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--tgc-light);
    border: 2px solid transparent;
    border-radius: 25px;
    overflow: hidden;
    transition: var(--tgc-transition);
}

.tgc-search-form:focus-within {
    border-color: var(--tgc-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.tgc-search-field {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--tgc-text);
    outline: none;
}

.tgc-search-field::placeholder {
    color: var(--tgc-text-light);
}

.tgc-search-submit {
    padding: 12px 20px;
    background: var(--tgc-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: var(--tgc-transition);
}

.tgc-search-submit:hover {
    background: #1557b0;
}

/* Header Actions */
.tgc-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tgc-dark-mode-toggle,
.tgc-menu-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--tgc-transition);
    color: var(--tgc-text);
}

.tgc-dark-mode-toggle:hover,
.tgc-menu-toggle:hover {
    background: var(--tgc-light);
}

.tgc-dark-mode-toggle {
    font-size: 20px;
    position: relative;
}

.tgc-dark-mode-toggle .tgc-icon-sun {
    display: none;
}

[data-theme="dark"] .tgc-dark-mode-toggle .tgc-icon-moon {
    display: none;
}

[data-theme="dark"] .tgc-dark-mode-toggle .tgc-icon-sun {
    display: block;
}

/* Menu Toggle */
.tgc-menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.tgc-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--tgc-text);
    margin: 2px 0;
    transition: var(--tgc-transition);
}

.tgc-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.tgc-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.tgc-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation */
.tgc-navigation {
    background: var(--tgc-white);
    border-top: 1px solid var(--tgc-border);
    padding: 0;
}

.tgc-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tgc-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.tgc-nav-menu li {
    position: relative;
}

.tgc-nav-menu a {
    display: block;
    padding: 20px 0;
    color: var(--tgc-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--tgc-transition);
    position: relative;
}

.tgc-nav-menu a:hover,
.tgc-nav-menu a.active {
    color: var(--tgc-primary);
}

.tgc-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--tgc-primary);
    transition: var(--tgc-transition);
}

.tgc-nav-menu a:hover::after,
.tgc-nav-menu a.active::after {
    width: 100%;
}

/* Newsletter Mini */
.tgc-newsletter-mini {
    display: flex;
    align-items: center;
}

.tgc-newsletter-btn {
    background: var(--tgc-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--tgc-transition);
}

.tgc-newsletter-btn:hover {
    background: #2d8e47;
    transform: translateY(-2px);
}

/* Mobile Menu */
.tgc-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--tgc-transition);
}

.tgc-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tgc-mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 90vw;
    height: 100%;
    background: var(--tgc-white);
    padding: 20px;
    transform: translateX(100%);
    transition: var(--tgc-transition);
    overflow-y: auto;
}

.tgc-mobile-menu-overlay.active .tgc-mobile-menu-content {
    transform: translateX(0);
}

.tgc-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tgc-border);
    margin-bottom: 20px;
}

.tgc-mobile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--tgc-text);
    padding: 5px;
}

.tgc-mobile-search {
    margin-bottom: 30px;
}

.tgc-mobile-search form {
    display: flex;
    border: 2px solid var(--tgc-border);
    border-radius: 25px;
    overflow: hidden;
}

.tgc-mobile-search input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    outline: none;
    color: var(--tgc-text);
}

.tgc-mobile-search button {
    padding: 12px 20px;
    background: var(--tgc-primary);
    color: white;
    border: none;
    cursor: pointer;
}

.tgc-mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tgc-mobile-nav-menu li {
    border-bottom: 1px solid var(--tgc-border);
}

.tgc-mobile-nav-menu a {
    display: block;
    padding: 15px 0;
    color: var(--tgc-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--tgc-transition);
}

.tgc-mobile-nav-menu a:hover {
    color: var(--tgc-primary);
    padding-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tgc-top-bar {
        display: none;
    }

    .tgc-main-header .tgc-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .tgc-header-left {
        flex: 1;
    }

    .tgc-header-center {
        order: 3;
        flex: 100%;
        margin: 0;
    }

    .tgc-header-right {
        flex-shrink: 0;
    }

    .tgc-menu-toggle {
        display: flex;
    }

    .tgc-navigation {
        display: none;
    }

    .tgc-search-container {
        max-width: none;
    }

    .tgc-logo-main,
    .tgc-logo-sub {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .tgc-container {
        padding: 0 15px;
    }

    .tgc-main-header {
        padding: 10px 0;
    }

    .tgc-search-field {
        font-size: 14px;
        padding: 10px 15px;
    }

    .tgc-search-submit {
        padding: 10px 15px;
    }

    .tgc-logo-main,
    .tgc-logo-sub {
        font-size: 20px;
    }
}

/* Icon Fonts - Add Font Awesome or create custom icons */
.tgc-icon-flash:before { content: "⚡"; }
.tgc-icon-facebook:before { content: "📘"; }
.tgc-icon-twitter:before { content: "🐦"; }
.tgc-icon-instagram:before { content: "📷"; }
.tgc-icon-linkedin:before { content: "💼"; }
.tgc-icon-youtube:before { content: "📺"; }
.tgc-icon-search:before { content: "🔍"; }
.tgc-icon-moon:before { content: "🌙"; }
.tgc-icon-sun:before { content: "☀️"; }
.tgc-icon-mail:before { content: "📧"; }
.tgc-icon-search:before { content: "\f002"; font-family: "Font Awesome 6 Free"; }
.tgc-icon-moon:before { content: "\f186"; font-family: "Font Awesome 6 Free"; }

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tgc-header {
    animation: fadeInDown 0.5s ease-out;
}

/* Smooth scrolling offset for fixed header */
html {
    scroll-padding-top: 120px;
}

/* Focus styles for accessibility */
.tgc-search-field:focus,
.tgc-nav-menu a:focus,
.tgc-newsletter-btn:focus {
    outline: 2px solid var(--tgc-primary);
    outline-offset: 2px;
}