* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'League';
    font-weight: 400;
}

@font-face {
    font-family: 'League';
    src: url('/fonts/League.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* nav bar */

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #E2BA3D;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #E2BA3D;
}

/* hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

.nav-toggle .hamburger {
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* open state */
.nav-toggle.open .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {

    .navbar ul {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        flex-direction: column;
        background: rgba(52, 46, 130, 0.95);
        padding-top: 60px;
        gap: 20px;
        transition: right 0.3s ease;
        z-index: 2000;
    }

    .navbar ul.open {
        right: 0;
    }

    .navbar ul li {
        text-align: center;
        padding: 12px 20px;
    }

    .navbar ul li a {
        display: block;
        font-size: 1.2rem;
        color: white;
    }

    .nav-toggle {
        display: flex;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1500;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

.navbar ul li a.active {
    color: #E2BA3D;
}

/* header */

.header {
    background: linear-gradient(160deg, rgba(52, 46, 130, 0.85), rgba(75, 28, 128, 0.85), rgba(30, 23, 74, 0.85)),
        url('/images/header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    gap: 16px;
}

.header p {
    color: white;
    margin: 20px 0px;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .header {
        min-height: 100vh;
        padding: 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: clamp(1.5rem, 6vw + 0.5rem, 2.5rem);
    }

    .subline {
        font-size: clamp(1rem, 5vw + 0.3rem, 1.8rem);
    }

    .header p {
        font-size: 1.2rem;
    }
}

/* typography  */

.title {
    color: #E2BA3D;
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.subline {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 3rem);
    color: #E2BA3D;
    font-weight: 500;
}


.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    color: #E2BA3D;
    margin: 40px 0 10px;
    position: relative;
    text-align: center;
    gap: 20px;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 5px;
    background-color: #E2BA3D;
    max-width: 60px;
    border-radius: 4px;
}

.sale-info {
    color: #414141;
    text-align: center;
    font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
    line-height: 1.4;
    font-weight: 500;
    max-width: 1000px;
    margin: auto;
    padding: 10px 50px 0px;
}

/* footer */

.footer {
    border-top: 1px solid #dadada;
    color: #3d3d3d;
    text-align: center;
    padding: 20px 10px;
    font-size: 1rem;
}

.footer a {
    color: #D7263D;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #E2BA3D;
}


/* skin card grid */

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* component - skin card */

.skin-card {
    position: relative;
    width: 100%;
    max-width: 350px;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skin-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.skin-card img {
    width: 100%;
    height: auto;
}

.skin-card h3 {
    margin: 8px;
}

.skin-card p {
    margin: 8px;
}

.skin-card a {
    display: block;
    width: 95%;
    margin: 12px auto;
    color: white;
    background: #E2BA3D;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.skin-card a:hover {
    color: #E2BA3D;
    background: #fff;
    border-color: #E2BA3D;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #D7263D;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.skin-card .rp-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* loading spinner */

.loading-spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #E2BA3D;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 60px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* mythic section overrides */

.section-title.mythic {
    color: #741A81;
    margin-top: 20px;
}

.skin-card.mythic-card a {
    background: #741A81;
}

.skin-card.mythic-card a:hover {
    background: #fff;
    color: #741A81;
    border-color: #741A81;
}

.rp-icon.mythic {
    margin-right: 0;
}

.section-title.mythic::before,
.section-title.mythic::after {
    background-color: #741A81;
}

/* fullscreen overlay */

.skin-card img {
    cursor: pointer;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fullscreen-overlay img {
    max-width: 85vw;
    max-height: 85vh;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* previous sales */

.week-filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0px;
    font-size: 1.1rem;
    color: #E2BA3D;
}

.week-filter-container label {
    font-weight: 500;
}

.week-filter-container select {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #E2BA3D;
    background-color: rgba(255, 255, 255, 0.05);
    color: #414141;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.week-filter-container select:hover,
.week-filter-container select:focus {
    border-color: #524D95;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

/* search container */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-container input {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #E2BA3D;
    font-size: 1rem;
    width: 250px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: black;
}

.search-container input::placeholder {
    color: #41414153;
}

.search-container input:focus {
    border-color: #524D95;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.search-container button {
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid #E2BA3D;
    background-color: #E2BA3D;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container button:hover {
    background-color: white;
    color: #E2BA3D;
}

/* skin Table */
.skin-table {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 60px;
    border-collapse: collapse;
    font-size: 1rem;
    text-align: left;
}

.skin-table th,
.skin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: black;
}

.skin-table thead {
    background-color: rgba(52, 46, 130, 0.85);
}

.skin-table th {
    color: #E2BA3D;
    font-weight: 600;
}

.skin-table tbody tr:hover {
    background-color: rgba(75, 28, 128, 0.3);
    transition: background-color 0.3s ease;
}

.skin-table td {
    vertical-align: middle;
}

/* mobile adjustments for search/reset buttons */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .search-container input {
        width: 85%;
        text-align: center;
    }

    .search-container button {
        width: 85%;
        text-align: center;
    }
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto 60px;
}

.skin-table {
    width: 100%;
    min-width: 600px;
}

/* pagination controls */

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 20px auto;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0 80px;
    box-sizing: border-box;
}


.pagination-controls button {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #E2BA3D;
    background-color: #E2BA3D;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-controls button.active {
    background-color: white;
    color: #E2BA3D;
}

.pagination-controls button:hover {
    background-color: white;
    color: #E2BA3D;
}