
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: linear-gradient(145deg, #e0f0ff 0%, #f5faff 100%);
    color: #1f2e44;
    line-height: 1.45;
    min-height: 100vh;
}

/* subtle ice crystal pattern overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(100, 150, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* main container: 2-column layout */
.frost-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* ========== LEFT SIDEBAR (light glass) ========== */
.frost-sidebar {
    flex: 1.2;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    padding: 1.8rem 1.2rem;
    border: 1px solid rgba(60, 138, 255, 0.3);
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
}

.frost-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.frost-logo h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2c6eff, #1c4cbb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}
.frost-logo p {
    font-size: 0.7rem;
    color: #4a6a9e;
    margin-top: 0.3rem;
}

/* search inside sidebar */
.frost-search {
    margin-bottom: 2rem;
    position: relative;
}
.frost-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #2c6eff;
}
#frostSearchInput {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    background: white;
    border: 1px solid #bdd4ff;
    border-radius: 2rem;
    color: #1f2e44;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    transition: 0.2s;
}
#frostSearchInput:focus {
    outline: none;
    border-color: #2c6eff;
    box-shadow: 0 0 0 2px rgba(44, 110, 255, 0.2);
}

/* category list (vertical) */
.frost-categories {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}
.cat-frost-link {
    background: rgba(220, 235, 255, 0.7);
    border-radius: 2rem;
    padding: 0.7rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c4c7a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.cat-frost-link i {
    width: 24px;
    text-align: center;
    font-size: 1rem;
}
.cat-frost-link.active {
    background: linear-gradient(95deg, #2c6eff, #1c4cbb);
    color: white;
    border-color: #8bbaff;
    box-shadow: 0 4px 12px rgba(44, 110, 255, 0.3);
}
.cat-frost-link:hover:not(.active) {
    background: #e0edff;
    border-color: #2c6eff;
    transform: translateX(5px);
}

.frost-stats {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2rem;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1rem;
    color: #3c5a8c;
}
.frost-stats span {
    font-weight: 800;
    color: #2c6eff;
}

/* ========== RIGHT CONTENT (game grid) ========== */
.frost-main {
    flex: 3.5;
    min-width: 260px;
}

.frost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.5rem;
}

.frost-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #cce0ff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}
.frost-card:hover {
    transform: translateY(-6px);
    border-color: #2c6eff;
    box-shadow: 0 18px 28px -8px rgba(44, 110, 255, 0.2);
}
.frost-card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #eaf3ff;
    border-bottom: 2px solid #cce0ff;
}
.frost-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.frost-card:hover .frost-card-img img {
    transform: scale(1.05);
}
.frost-card-info {
    padding: 1.2rem 1rem 1.2rem;
}
.frost-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.frost-card-title a {
    color: #1f2e44;
    text-decoration: none;
    font-weight: 800;
    transition: color 0.2s;
}
.frost-card-title a:hover {
    color: #2c6eff;
}
.frost-card-cat {
    font-size: 0.65rem;
    background: #e0edff;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-weight: 600;
    color: #2c6eff;
}
.hot-frost-badge {
    background: #ff4d6d;
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: white;
}
.frost-card-desc {
    font-size: 0.8rem;
    color: #4a617c;
    margin: 0.6rem 0 1rem;
    line-height: 1.4;
}
.frost-play-link {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c6eff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: 0.2s;
}
.frost-card:hover .frost-play-link {
    gap: 10px;
    color: #1c4cbb;
}

.no-results-frost {
    text-align: center;
    padding: 3rem;
    background: #f0f5ff;
    border-radius: 2rem;
    grid-column: 1 / -1;
    border: 1px dashed #2c6eff;
    color: #3c5a8c;
}

/* 500+ words description (light ice-themed) */
.frost-description {
    margin: 1.5rem 0 2rem;
    padding: 2rem;
    background: #ffffffcc;
    backdrop-filter: blur(4px);
    border-radius: 1.8rem;
    border-left: 6px solid #2c6eff;
    border-right: 1px solid #cce0ff;
}
.frost-description h3 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2c6eff, #1c4cbb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}
.frost-description p {
    margin-bottom: 1rem;
    line-height: 1.65;
    color: #2e456e;
}
.frost-description strong {
    color: #2c6eff;
}

.frost-footer {
    text-align: center;
    padding: 1.2rem 0 0.5rem;
    border-top: 1px solid #cce0ff;
    font-size: 0.75rem;
    color: #6a85aa;
}
.frost-footer a {
    color: #2c6eff;
    text-decoration: none;
}

/* back to top - bright icy */
.frost-btt {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 999;
    color: #2c6eff;
    border: 1px solid #2c6eff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.frost-btt.show {
    opacity: 1;
    visibility: visible;
}
.frost-btt:hover {
    background: #2c6eff;
    color: white;
    transform: scale(1.05);
}

@media (max-width: 850px) {
    .frost-wrapper {
        flex-direction: column;
        padding: 1.2rem;
    }
    .frost-sidebar {
        position: relative;
        top: 0;
        width: 100%;
    }
    .frost-categories {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cat-frost-link {
        flex: 1 0 auto;
        justify-content: center;
    }
    .frost-btt {
        left: 1rem;
        bottom: 1rem;
    }
}

a {
    text-decoration: none;
}