/* style.css - Modern COD Theme based on BF6 Design */
body {
    background-color: #06090e;
    color: #c9d1d9;
    font-family: "Rajdhani", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0px;
    box-sizing: border-box;
    flex: 1;
}

@media (max-width: 1220px) {
    .container {
        padding: 20px 10px;
    }
}

a {
    color: #59b1ed;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #fff;
}

h1,
h2,
h3 {
    color: #fff;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.5)) drop-shadow(0px 0px 2px rgba(0, 0, 0, 1));
}

/* BF6 Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bf6-nav {
    max-width: 1200px;
    padding: 5px 10px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nav-logo {
    color: #59b1ed;
    font-weight: 900;
    font-size: 20px;
    line-height: 30px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    order: 1;
}

.nav-logo a:hover {
    color: #fff;
    text-decoration: none;
}

.nav-badge {
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    color: #000;
    background: #59b1ed;
    padding: 4px 6px;
    border-radius: 4px;
    margin-right: 10px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game_logo_link {
    color: #59b1ed;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    text-decoration: none !important;
    position: relative;
    2top: -2px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    order: 2;
}

.nav-links a {
    font-weight: 700;
    font-size: 15px;
    padding: 0 15px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 30px;
    color: #fff;
}

.nav-links a.menu_selected {
    color: #59b1ed;
    border-bottom: 3px solid #59b1ed;
    margin-bottom: -3px;
}

.nav-links a:hover {
    color: #fff;
    text-decoration: none;
}

.nav-controls {
    display: flex;
    align-items: center;
    order: 4;
}

.header-search-btn {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 8px 12px;
    width: 260px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: #8a8a8a;
}

.header-search-btn:hover {
    border-color: #59b1ed;
    background-color: #222222;
    color: #fff;
}

.leaderboard-table tr:hover {
    background-color: #21262d;
}

.highlighted-row {
    background-color: rgba(255, 215, 0, 0.15) !important;
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.highlighted-row:hover {
    background-color: rgba(255, 215, 0, 0.25) !important;
}

.search-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    stroke: currentColor;
}

.search-text {
    font-size: 15px;
    font-weight: 600;
    flex-grow: 1;
    text-align: left;
}

.search-shortcut {
    background-color: #2a2a2a;
    color: #a3a3a3;
    border: 1px solid #333333;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    font-family: monospace;
    line-height: 1;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
}

.nav-hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
}

/* Tables & Grid */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
    table-layout: auto;
}

th,
td {
    border: 1px solid #1e2532;
    padding: 8px 10px;
    text-align: left;
}

th {
    background: rgba(21, 26, 37, 0.85);
    color: #8b949e;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: bold;
}

tr {
    transition: background 0.2s;
}

tr:hover {
    background: rgba(21, 26, 37, 0.6);
}

tr:nth-child(even) {
    background: rgba(15, 19, 28, 0.5);
}

.td-rank {
    width: 1%;
    white-space: nowrap;
    color: #8b949e;
    font-size: 13px;
    text-align: center;
    font-weight: bold;
    padding-right: 10px;
}

.td-name {
    max-width: 0;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-td-name {
    min-width: 120px;
    max-width: 200px;
    width: auto;
}

.td-name a {
    color: #59b1ed;
    font-weight: bold;
}

.td-val {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    color: #ffffff;
    font-weight: bold;
}

.match-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Mobile rules handled below */

/* Cards & Layout */
.hero-search {
    text-align: center;
    padding: 30px 20px 0px 20px;
    2background: linear-gradient(180deg, #101517 0%, #000 100%);
    2border-bottom: 1px solid #1e2426;
    margin-bottom: 40px;
}

.hero-search h1 {
    color: #fff;
    font-size: 46px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-search p {
    color: #8b949e;
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-search form {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.hero-search input {
    padding: 14px 20px;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #59b1ed;
    border-right: none;
    color: #fff;
    border-radius: 6px 0 0 6px;
    font-size: 18px;
    outline: none;
    font-family: 'Rajdhani', sans-serif;
}

.hero-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 14px 25px;
    background: #59b1ed;
    color: #000;
    border: none;
    border-radius: 0 6px 6px 0;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
}

.breadcrumbs {
    font-size: 15px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    filter: drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.5)) drop-shadow(0px 0px 5px rgba(0, 0, 0, 1)) drop-shadow(0px 0px 15px rgba(0, 0, 0, 1));
}

.mini-boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.mini-board {
    background: linear-gradient(135deg, rgb(23 40 59 / 70%) 0%, rgba(16, 21, 23, 0.7) 40%);
    backdrop-filter: blur(10px);
    border: 1px solid #1e2426;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.match-card-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
}

@media (max-width: 600px) {
    .match-card-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.mini-board h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #c9d1d9;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.mini-board table td {
    border: none;
    padding: 6px 0;
    border-bottom: 1px solid #1e2426;
}

.mini-board table td.td-rank {
    padding-right: 8px;
}

/* Filter Buttons */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 2px;
}

.filter-btn {
    padding: 6px 14px;
    background: #1a1f22;
    color: #8b949e;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    border: 1px solid #324045;
    white-space: nowrap;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
}

.filter-btn.active {
    background: #59b1ed;
    color: #000;
    border-color: #59b1ed;
}

.filter-btn:hover:not(.active) {
    border-color: #59b1ed;
    color: #fff;
    text-decoration: none;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #1e2426;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.profile-tabs>div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Ranked Card */
.ranked-overview-card {
    background: rgba(16, 21, 23, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #ffd700;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.ranked-stat {
    text-align: center;
    border-right: 1px solid #1e2426;
}

.ranked-stat:last-child {
    border-right: none;
}

.ranked-stat .val {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1;
}

.ranked-stat .lbl {
    font-size: 14px;
    color: #8b949e;
    text-transform: uppercase;
    font-weight: 600;
}

/* Profile Grids (Mobile Responsive fix) */
.profile-hero-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(16, 21, 23, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #324045;
    border-radius: 5px;
    box-shadow: inset 0 0 15px rgba(89, 177, 237, 0.05);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(21, 26, 37, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid #1e2532;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #59b1ed;
}

.stat-card.highlight {
    border-color: #59b1ed;
    background: #14191b;
}

.stat-card .val {
    font-size: 21px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-card .lbl {
    font-size: 12px;
    color: #8b949e;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    box-sizing: border-box;
    background: rgba(16, 21, 23, 0.7);
    backdrop-filter: blur(10px);
}

.profile-top-grid.basic {
    border: 1px solid #1e2532;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rank-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: auto;
}

.rank-txt {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.rank-bg {
    flex-grow: 1;
    height: 6px;
    background: #30363d;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.rank-fill {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 3px;
}

.rank-gold .rank-fill {
    background: #ffd700;
}

.rank-gold .rank-txt {
    color: #ffd700;
}

.rank-silver .rank-fill {
    background: #c0c0c0;
}

.rank-silver .rank-txt {
    color: #c0c0c0;
}

.rank-bronze .rank-fill {
    background: #cd7f32;
}

.rank-bronze .rank-txt {
    color: #cd7f32;
}

.rank-gray .rank-fill {
    background: #8b949e;
}

.rank-gray .rank-txt {
    color: #8b949e;
}

.rank-std .rank-fill {
    background: #59b1ed;
}

.rank-std .rank-txt {
    color: #59b1ed;
}

.stat-pill {
    background: rgba(16, 21, 23, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border: 1px solid #324045;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    display: inline-block;
}

.stat-pill span {
    color: #8b949e;
    font-weight: 600;
    margin-right: 5px;
}

.stat-pill.hidden-metric {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Delta Colors */
.delta-pos {
    color: #4ade80 !important;
}

.delta-neg {
    color: #f85149 !important;
}

/* Custom Select */
.styled-select {
    padding: 8px 12px;
    background-color: rgba(21, 26, 37, 0.7);
    backdrop-filter: blur(10px);
    color: #c9d1d9;
    border: 1px solid #324045;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 35px;
}

.styled-select:hover {
    border-color: #59b1ed !important;
}

/* Mobile Resonsiveness */
@media (max-width: 1099px) {
    .header-search-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
    }

    .search-text,
    .search-shortcut {
        display: none;
    }

    .search-icon {
        margin-right: 0;
    }
}

@media (max-width: 900px) {
    .nav-controls {
        flex-grow: 1;
        justify-content: flex-end;
        order: 2;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        order: 3;
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        padding: 10px 0;
        text-align: left;
    }

    .nav-links.is-open {
        display: flex;
    }

    .ranked-overview-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .ranked-stat:nth-child(even) {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .background-layer {
        transform: translateX(10%);
    }

    .profile-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .profile-hero-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-card .val {
        font-size: 17px;
    }

    .stat-card .lbl {
        font-size: 11px;
    }

    .rank-txt {
        font-size: 11px;
    }

    .filter-row {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .filter-btn {
        width: auto;
        font-size: 13px;
        padding: 6px 10px;
        flex-grow: 1;
        text-align: center;
    }

    .stat-pill {
        font-size: 13px;
        padding: 4px 8px;
    }
}

/* Ranked Card Polish */
.ranked-card {
    background: linear-gradient(135deg, rgb(23 40 59 / 70%) 0%, rgba(16, 21, 23, 0.7) 40%);
    backdrop-filter: blur(10px);
    padding: 15px;
    border: 1px solid #1e2532;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.ranked-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 0.5;
}

.ranked-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.4);
    border-right: 2px solid rgba(255, 215, 0, 0.4);
    border-bottom-right-radius: 8px;
}


.background-layer {
    width: 100%;
    max-width: 1800px;
    min-width: 900px;
    aspect-ratio: 1800 / 764;
    flex-shrink: 0;

    background-color: #06090e;
    background-image:
        linear-gradient(to top, #06090e 0%, rgba(0, 0, 0, 0) 80%),
        linear-gradient(to top, #06090e 0%, rgba(0, 0, 0, 0) 70%),
        linear-gradient(to top, #06090e 0%, rgba(0, 0, 0, 0) 30%),

        linear-gradient(to left, #06090e 0%, rgba(0, 0, 0, 0) 30%),
        linear-gradient(to left, #06090e 0%, rgba(0, 0, 0, 0) 300px),

        linear-gradient(to right, #06090e 0%, rgba(0, 0, 0, 0) 30%),
        linear-gradient(to right, #06090e 0%, rgba(0, 0, 0, 0) 300px),
        /* Базове зображення */
        url('bg.jpg');

    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;

    z-index: -1;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;

    display: flex;
    justify-content: center;
}

.fat-shadow {
    text-shadow: -1px -1px 0 #000000, 0px -1px 0 #000000, 1px -1px 0 #000000, -1px 0px 0 #000000, -1px 1px 0 #000000, 2px 0px 0 #000000, 0px 3px 0 #000000, 3px 3px 0 #000000;
}

.header-search-form {
    margin: 0;
    width: 200px;
    display: flex;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .header-search-form {
        width: 82px;
    }
}

.discord-btn {
    margin-right: 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: #58a6ff;
    padding: 0;
}

.stat-spacer {
    display: inline-block;
    width: 8px;
}

@media (max-width: 600px) {
    .discord-btn {
        margin-right: 7px !important;
    }
}/* Premium Generate Card Button */
.btn-premium-generate {
    background: linear-gradient(135deg, #1e2532 0%, #2b3548 100%);
    border: 1px solid #4d5970;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 0 10px rgba(77, 89, 112, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    animation: premiumPulse 2s infinite;
    padding: 8px 16px;
    border-radius: 6px;
}

.btn-premium-generate:hover {
    background: linear-gradient(135deg, #2b3548 0%, #3a4760 100%);
    border-color: #637392;
    box-shadow: 0 0 15px rgba(99, 115, 146, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

@keyframes premiumPulse {
    0% { box-shadow: 0 0 0 0 rgba(77, 89, 112, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(77, 89, 112, 0); }
    100% { box-shadow: 0 0 0 0 rgba(77, 89, 112, 0); }
}
@media (max-width: 768px) { .hide-on-mobile { display: none !important; } }
.delta-boards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 20px; } @media (max-width: 768px) { .delta-boards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.seo-content { padding: 20px; border-radius: 8px; margin-top: 30px; font-size: 13px; color: #8b949e; line-height: 1.6; } .seo-content h2, .seo-content h3 { color: #c9d1d9; font-size: 16px; margin-bottom: 10px; margin-top: 15px; } .seo-content h2:first-child { margin-top: 0; font-size: 18px; } .seo-content p { margin-bottom: 10px; } .seo-content p:last-child { margin-bottom: 0; } .seo-content strong { color: #c9d1d9; }
