/* =========================================
   BUYUK.NET HEADER STYLES - REFERENCE DESIGN
   ========================================= */

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
    position: relative;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.announcement-content i {
    font-size: 14px;
}

.announcement-content strong {
    font-weight: 700;
}

.announcement-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.announcement-close:hover {
    opacity: 1;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #1a1d2e;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-left {
    justify-content: flex-start;
}

.top-bar-right {
    justify-content: flex-end;
}

.top-bar a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar a:hover {
    color: #fff;
}

.top-bar .btn-register {
    background: #0ea5e9;
    color: #fff !important;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 500;
}

.top-bar .btn-register:hover {
    background: #0284c7;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo img {
    height: 40px;
}

/* ===== NAVIGATION ===== */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu>li {
    position: relative;
}

.nav-menu>li>a {
    color: #1f2937;
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-menu>li>a:hover {
    color: #0ea5e9;
}

.nav-menu>li>a .caret {
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    display: inline-block;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search,
.header-cart {
    position: relative;
}

.header-search a,
.header-cart a {
    color: #1f2937;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.header-search a:hover,
.header-cart a:hover {
    color: #0ea5e9;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #10b981;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ===== MEGA MENU ===== */
.dropdown {
    position: relative;
}

a.dropdown-toggle {
    position: relative;
}

.menu-badge {
    position: absolute !important;
    top: 0;
    right: 0;
    background-color: red;
    color: #fff;
    padding: 1px 9px;
    font-size: 10px;
    border-radius: 3px;
    text-align: center;
    font-weight: 400;
    position: absolute;
    top: 2px;
    animation: fadeIn 2s linear 0s infinite;
    height: 22px;
    line-height: 18px;
}

.menu-badge:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: red;
    position: absolute;
    inset: 100% auto auto 10px;
    transform: translateX(-50%);
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.menu-badge.blue:after {
    border-top-color: #3b82f6;
}

.menu-badge.green:after {
    border-top-color: #10b981;
}

.menu-badge.blue {
    background: #3b82f6;
}

.menu-badge.green {
    background: #10b981;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-width: 800px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
    padding: 25px 0px !important;
    width: 100%;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.mega-menu-section {
    margin-bottom: 25px;
}

.mega-menu-section:last-child {
    margin-bottom: 0;
}

.mega-menu-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.mega-menu-item:hover {
    background: #f9fafb;
}

.mega-menu-icon {
    width: 36px;
    height: 36px;
    background: #eff6ff;
    color: #0ea5e9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mega-menu-info {
    flex: 1;
}

.mega-menu-info strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.mega-menu-info span {
    display: block;
    color: #6b7280;
    font-size: 12px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1f2937;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    transition: visibility 0s linear 0.3s;
}

.mobile-menu-overlay.active {
    visibility: visible;
    transition-delay: 0s;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #fff;
    transition: transform 0.3s ease;
    z-index: 10001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(300px);
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header img.mobile-logo {
    height: 35px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}

.mobile-menu-body {
    padding: 20px;
}

.mobile-user-links {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.mobile-user-links li a {
    font-size: 13px;
    color: #0ea5e9;
    background: #eff6ff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
}

.mobile-search {
    margin-bottom: 20px;
}

.mobile-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8fafc;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f1f1f1;
}

.mobile-nav-list li a {
    display: block;
    padding: 12px 0;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    position: relative;
}

.mobile-nav-list li.has-submenu>a .fa-chevron-down {
    float: right;
    font-size: 12px;
    margin-top: 5px;
    color: #999;
    transition: transform 0.3s;
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding: 0 0 10px 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.mobile-nav-list li.open>.mobile-submenu {
    display: block;
}

.mobile-nav-list li.open>a .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-submenu li {
    border: none;
}

.mobile-submenu li a {
    font-weight: 400;
    color: #555;
    font-size: 14px;
    padding: 8px 0;
}

@media (max-width: 991px) {
    .main-nav {
        display: none;
    }

    .header-search,
    .header-cart {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .header-wrapper {
        justify-content: space-between;
    }
}

.awm-promo-card {
    height: 100%;
    min-height: 200px;
    border-radius: 16px;
    padding: 10px;
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Background Gradients */
.awm-promo-card.purple-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.awm-promo-card.blue-gradient {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.awm-promo-card.game-gradient {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Greenish for games/performance */
.awm-promo-card.neon-gradient {
    background: linear-gradient(135deg, #00bff2 0%, #0575e6 100%);
}

.awm-promo-card.orange-gradient {
    background: linear-gradient(135deg, #820000 0%, #f51959 100%);
}

.awm-promo-card.dark-gradient {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

/* Promo Card Content */
.awm-promo-card .promo-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.awm-promo-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.3;
}

.awm-promo-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    line-height: 1.5;
}

.awm-promo-card .btn-promo {
    display: inline-block;
    padding: 10px 25px;
    background: #fff;
    color: #333;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.awm-promo-card .btn-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.awm-promo-card .btn-promo.btn-light-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.awm-promo-card .btn-promo.btn-light-outline:hover {
    background: #fff;
    color: #333;
}

/* Shape decoration */
.awm-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.contact-box.mb-4 {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-campaign {
    width: 100%;
    background: white;
    border-radius: 10px;
    color: black;
    padding: 5px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-campaign i {
    border-radius: 10px;
    background: #c0ebff;
    padding: 7px;
    color: #205f85;
    height: fit-content;
}

.contact-campaign div {
    width: 100%;
    font-size: 12px;
}

.megamenu-bar {
    width: 100%;
    background: #18293b;
    padding: 6px 20px;
    margin-top: 10px;
    border-radius: 5px;
}

.megamenu-bar i {
    background: #ffffff1f;
    padding: 7px;
    border-radius: 5px;
    color: white;
}

.megamenu-content {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.megamenu-bar span {
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 12px;
        padding: 8px 0;
    }

    .top-bar {
        font-size: 11px;
    }

    .top-bar ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .header-logo img {
        height: 32px;
    }
}