:root {
    --main: #000;
    --accent: #FFB43A;
    --bg: #0f0f0f;
    --card: #1a1a1a;
    --text: #eaeaea;
    --border: #2a2a2a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--accent) #111;
    scrollbar-width: thin;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    padding: 25px;
    margin: 0;
    position: relative;
    overflow-x: hidden;

    background:
        radial-gradient(circle at top left,
            rgba(120, 130, 150, 0.07),
            transparent 28%),
        radial-gradient(circle at top right,
            rgba(80, 90, 110, 0.05),
            transparent 24%),
        linear-gradient(180deg,
            #111111 0%,
            #0c0c0d 45%,
            #080808 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

    background-size: 40px 40px;
}

body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    border-radius: 50%;
    background: rgba(120, 130, 150, 0.03);
    filter: blur(120px);
    z-index: -1;
}

h2 {
    font-size: 30px;
    color: var(--accent);
    padding-top: 0px;
    margin-top: 0px;
}

hr {
    border: none;
    background-color: var(--accent);
    height: 4px;
    opacity: 0.6;
}

.filter-box {
    margin-bottom: 20px;
}

select {
    padding: 8px 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 20px;
    background: var(--card);
    color: var(--accent);
    font-weight: bold;
    outline: none;
    cursor: pointer;
    width: 250px;
}

select option {
    color: var(--text);
    background: var(--card);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 180, 58, 0.18);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.55),
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 180, 58, 0.05);

    filter: brightness(1.03);
}

.card-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    position: relative;
    overflow: hidden;
    background: var(--card);
    cursor: pointer;
}

.card-img img {
    position: absolute;
    inset: 0;
    z-index: 2;

    width: 100%;
    height: 100%;
    object-fit: contain;

    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .35));
    transition: transform .3s ease;
}

.card-img:hover img {
    transform: scale(1.02);
}

.card-body {
    padding: 12px 16px;
    font-size: 17.5px;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 8px;
}

.card-body p {
    margin: 4px 0;
    padding-left: 8px;
    border-left: 3px solid var(--accent);
    color: var(--text);
}

.card-body b {
    color: var(--accent);
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.badge {
    text-align: center;
    font-weight: bold;
    margin: 8px 0;
    font-size: 18px;
}

.badge-new {
    color: #45d483;
}

.badge-old {
    color: #ff6666;
}

#singleLightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#singleLightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    transition: transform .3s ease;
}

#singleLightbox img:hover {
    transform: scale(1.02);
}

#singleLightbox span {
    position: absolute;
    color: var(--accent);
    font-size: clamp(35px, 5vw, 75px);
    cursor: pointer;
    user-select: none;
    transition: color .2s ease;
}

#singleLightbox span:hover {
    color: #ffd27a;
}

#closeBtn {
    top: -30px;
    right: 5px;
}

#prevBtn {
    top: 50%;
    left: 2vw;
    transform: translateY(-50%);
}

#nextBtn {
    top: 50%;
    right: 2vw;
    transform: translateY(-50%);
}

.info-note {
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.5;
    transition: .2s ease;
}

.info-note:hover {
    color: #fff;
}

.info-note .title {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 6px;
}

.info-note .title::before {
    content: "ℹ️";
    margin-right: 8px;
}

.info-note .note-content {
    font-size: 16px;
    color: var(--text);
}

.pagination-info {
    text-align: center;
    margin: 20px auto;
    padding: 14px 20px;
    max-width: 550px;

    background: rgba(255, 255, 255, 0.03);
    color: var(--text);

    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: .2s;
}

.pagination a:hover {
    background: rgba(255, 180, 58, 0.12);
    color: var(--accent);
    border-color: var(--accent);
}

.pagination .active {
    background: var(--accent);
    color: var(--main);
    border-color: var(--accent);
}

.pagination .disabled {
    opacity: .35;
    pointer-events: none;
}


@media (max-width: 1280px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 990px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body {
        padding: 15px;
    }

    body::before,
    body::after {
        display: none;
    }

    h2 {
        font-size: 21px;
    }

    .pagination-info {
        font-size: 13px;
        padding: 12px;
    }

    .pagination {
        gap: 5px;
    }

    .pagination a,
    .pagination span {
        padding: 8px 10px;
        font-size: 13px;
    }
}



/* =================================
   İSTATİSTİK TABLOLARI
================================= */

.tables-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 45px 0;
    align-items: flex-start;
}

.table-box {
    flex: 1;
    min-width: 350px;
    background: var(--card);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border);
    height: max-content;
    overflow-x: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

.table-box h2 {
    margin: 15px 0 10px;
    color: var(--accent);
    border-left: 5px solid var(--accent);
    padding-left: 10px;
    font-size: 22px;
}

.table-box h2:first-child {
    margin-top: 20px;
}

.table-box table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
    font-size: 15px;
}

.table-box th {
    background: var(--main, #000);
    color: var(--accent);
    padding: 10px;
    text-align: center;
    border: 1px solid var(--accent);
    font-weight: 700;
}

.table-box td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.table-box tr:hover td {
    background: rgba(255, 180, 58, 0.08);
}

.table-box td:last-child {
    font-weight: bold;
    color: var(--accent);
}

/* MOBİL */
@media (max-width: 600px) {
    .tables-wrapper {
        gap: 15px;
        margin: 30px 0;
    }

    .table-box {
        min-width: 100%;
        padding: 12px;
    }

    .table-box h2 {
        font-size: 19px;
    }

    .table-box table {
        font-size: 13px;
    }
}


/* TABLET */
@media (max-width: 900px) {
    .tables-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* MOBİL */
@media (max-width: 600px) {
    .tables-wrapper {
        gap: 15px;
        margin: 30px 0;
    }

    .table-box {
        padding: 12px;
        border-radius: 9px;
    }

    .table-box h2 {
        font-size: 17px;
    }

    .table-box table {
        font-size: 13px;
    }

    .table-box th,
    .table-box td {
        padding: 9px 8px;
    }
}

/* BİLGİ NOTU - TAM GENİŞLİK */
.info-note {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
}
