/* ==========================================================================
   GodasteGodiset - Main Stylesheet
   Baby pastel colors, modern & clean design
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Pastel palette */
    --pink: #FFB6C1;
    --pink-light: #FFD6DE;
    --pink-dark: #E8879A;
    --blue: #B5D8F7;
    --blue-light: #D4EAFC;
    --blue-dark: #7AB4E0;
    --green: #B8E6B8;
    --green-light: #D4F2D4;
    --green-dark: #85C985;
    --purple: #D4B8E8;
    --purple-light: #E8D6F4;
    --purple-dark: #B08FCC;
    --yellow: #FFF3B0;
    --yellow-light: #FFF8D4;
    --yellow-dark: #E8D76B;

    /* Neutral */
    --white: #FFFFFF;
    --off-white: #FEFBF6;
    --gray-50: #FAF8F5;
    --gray-100: #F2EDE6;
    --gray-200: #E4DDD4;
    --gray-300: #C8BFB4;
    --gray-400: #9A9088;
    --gray-500: #6B6158;
    --gray-600: #4A4139;
    --gray-700: #2D2520;

    /* Semantic */
    --text: #2D2520;
    --text-light: #6B6158;
    --bg: #FEFBF6;
    --bg-card: #FFFFFF;
    --border: #E4DDD4;
    --shadow: rgba(45, 37, 32, 0.08);
    --shadow-hover: rgba(45, 37, 32, 0.15);

    /* Star */
    --star-filled: #FFD700;
    --star-empty: #E4DDD4;

    /* Typography */
    --font-heading: 'Baloo 2', cursive, sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Spacing */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --container: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--pink-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple-dark); }

/* ---------- Container ---------- */
.gg-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-700);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.gg-section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}
.gg-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--pink), var(--blue), var(--purple));
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

.gg-gradient-text {
    background: linear-gradient(135deg, var(--pink-dark), var(--purple-dark), var(--blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.gg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.gg-btn--primary {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: var(--white);
    border-color: transparent;
}
.gg-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-hover);
}
.gg-btn--outline {
    background: transparent;
    color: var(--pink-dark);
    border-color: var(--pink);
}
.gg-btn--outline:hover {
    background: var(--pink-light);
    color: var(--pink-dark);
}
.gg-btn--lg { padding: 0.8rem 2rem; font-size: 1.1rem; }
.gg-btn--full { width: 100%; }

/* ---------- Header ---------- */
.gg-header {
    background: var(--white);
    border-bottom: 2px solid var(--pink-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow);
}
.gg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 1rem;
}
.gg-logo img { height: 80px; width: auto; }

.gg-nav__list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}
.gg-nav__list li a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}
.gg-nav__list li a:hover,
.gg-nav__list li.current-menu-item a {
    background: var(--pink-light);
    color: var(--pink-dark);
}

.gg-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Menu toggle (mobile) */
.gg-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.gg-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* User menu */
.gg-user-menu { position: relative; }
.gg-user-menu__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green-light);
    border: 2px solid var(--green);
    border-radius: var(--radius);
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
}
.gg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.gg-user-menu__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px var(--shadow);
    overflow: hidden;
    min-width: 150px;
}
.gg-user-menu__dropdown a {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--text);
    transition: background 0.2s;
}
.gg-user-menu__dropdown a:hover { background: var(--gray-50); }
.gg-user-menu.active .gg-user-menu__dropdown { display: block; }

/* ---------- Hero ---------- */
.gg-hero {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--blue-light) 50%, var(--purple-light) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.gg-hero__content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}
.gg-hero__title { margin-bottom: 1rem; }
.gg-hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.gg-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.gg-hero__decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
}

/* Floating candy emojis */
.gg-candy-float {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}
.gg-candy-float--1 { top: 10%; right: 15%; animation-delay: 0s; }
.gg-candy-float--2 { top: 30%; right: 35%; animation-delay: 1s; font-size: 2.5rem; }
.gg-candy-float--3 { top: 55%; right: 10%; animation-delay: 2s; }
.gg-candy-float--4 { top: 70%; right: 40%; animation-delay: 3s; font-size: 2rem; }
.gg-candy-float--5 { top: 20%; right: 55%; animation-delay: 4s; font-size: 2.2rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ---------- Search & Filter ---------- */
.gg-search-section {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.gg-search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.gg-search-bar__input {
    flex: 1;
    padding: 0.7rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
    outline: none;
}
.gg-search-bar__input:focus { border-color: var(--pink); }

.gg-filter-bar { margin-top: 1rem; }
.gg-filter-bar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.gg-filter-bar__selects {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tags */
.gg-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: var(--gray-50);
    color: var(--text-light);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-transform: capitalize;
}
.gg-tag:hover, .gg-tag--active {
    background: var(--pink-light);
    border-color: var(--pink);
    color: var(--pink-dark);
}
.gg-tag--small { padding: 0.2rem 0.6rem; font-size: 0.75rem; }
.gg-tag--category {
    background: var(--blue-light);
    border-color: var(--blue);
    color: var(--blue-dark);
}

/* Select */
.gg-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
    outline: none;
}
.gg-select:focus { border-color: var(--purple); }

/* ---------- Candy Grid ---------- */
.gg-candy-section { padding: 3rem 0; }

.candy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ---------- Candy Card ---------- */
.candy-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}
.candy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}
.candy-card__link { text-decoration: none; color: inherit; display: block; }

.candy-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-light), var(--blue-light));
}
.candy-card__image img { width: 100%; height: 100%; object-fit: cover; }

.candy-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.candy-card__badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: var(--white);
    font-weight: 800;
    font-family: var(--font-heading);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.candy-card__body { padding: 1rem; }
.candy-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.candy-card__brand {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}
.candy-card__ratings { margin-top: 0.5rem; }
.candy-card__user-rating small {
    color: var(--text-light);
    font-size: 0.8rem;
}
.candy-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

/* ---------- Stars ---------- */
.gg-stars {
    display: inline-flex;
    gap: 2px;
}
.gg-star {
    color: var(--star-empty);
    font-size: 1.2rem;
    transition: color 0.2s;
    line-height: 1;
}
.gg-star--filled { color: var(--star-filled); }
.gg-star--half {
    background: linear-gradient(90deg, var(--star-filled) 50%, var(--star-empty) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gg-stars--interactive .gg-star { cursor: pointer; }
.gg-stars--interactive .gg-star:hover,
.gg-stars--interactive .gg-star:hover ~ .gg-star { color: var(--star-filled); }

/* ---------- Single Candy ---------- */
.gg-candy-single { padding: 2rem 0; }

.gg-breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.gg-breadcrumb a { color: var(--pink-dark); }

.gg-candy-single__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.gg-candy-single__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-light), var(--blue-light));
}
.gg-candy-single__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.gg-candy-single__placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.gg-candy-single__title { margin-bottom: 0.3rem; }
.gg-candy-single__brand {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.gg-rating-block {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}
.gg-rating-block__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}
.gg-rating-block__stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gg-rating-block__value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}
.gg-rating-block__value small {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-light);
}

.gg-candy-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}
.gg-candy-single__price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badge */
.gg-badge {
    display: inline-flex;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.gg-badge--budget { background: var(--green-light); color: var(--green-dark); }
.gg-badge--medium { background: var(--yellow-light); color: var(--gray-600); }
.gg-badge--premium { background: var(--purple-light); color: var(--purple-dark); }

.gg-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
}

/* Review content */
.gg-candy-single__review {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 3rem;
}
.gg-candy-single__review h2 { margin-bottom: 1rem; }
.gg-candy-single__content p { margin-bottom: 1rem; }

/* Login prompt */
.gg-login-prompt {
    color: var(--text-light);
    font-style: italic;
}

/* ---------- Comments ---------- */
.gg-comments {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
}
.gg-comments h2 { margin-bottom: 1.5rem; }

.gg-comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    outline: none;
    margin-bottom: 0.8rem;
}
.gg-comment-form textarea:focus { border-color: var(--pink); }

.gg-comment {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.gg-comment:last-child { border-bottom: none; }

.gg-comment__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.gg-comment__header {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 0.3rem;
}
.gg-comment__header time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ---------- Tabs ---------- */
.gg-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.gg-tabs__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.gg-tabs__tab:hover {
    border-color: var(--pink);
    background: var(--pink-light);
    color: var(--text);
}
.gg-tabs__tab--active {
    background: var(--pink);
    border-color: var(--pink);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 182, 193, 0.4);
}
.gg-tabs__tab--active:hover {
    background: var(--pink-dark);
    border-color: var(--pink-dark);
    color: var(--white);
}
.gg-tabs__emoji {
    font-size: 1.1rem;
}
@media (max-width: 600px) {
    .gg-tabs__tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    .gg-tabs__label {
        display: none;
    }
    .gg-tabs__emoji {
        font-size: 1.3rem;
    }
}

/* ---------- Top Lists ---------- */
.gg-topplista {
    margin-bottom: 3rem;
}
.gg-topplista__title {
    margin-bottom: 1.5rem;
}
.gg-topplista__list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.gg-topplista__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.gg-topplista__item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow-hover);
}
.gg-topplista__rank {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pink-dark);
    min-width: 40px;
    text-align: center;
}
.gg-topplista__item:nth-child(1) .gg-topplista__rank { color: #FFD700; font-size: 1.8rem; }
.gg-topplista__item:nth-child(2) .gg-topplista__rank { color: #C0C0C0; font-size: 1.6rem; }
.gg-topplista__item:nth-child(3) .gg-topplista__rank { color: #CD7F32; font-size: 1.6rem; }

.gg-topplista__image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.gg-topplista__image img { width: 100%; height: 100%; object-fit: cover; }
.gg-topplista__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink-light), var(--blue-light));
    border-radius: var(--radius-sm);
}
.gg-topplista__info { flex: 1; }
.gg-topplista__info h3 { font-size: 1rem; }
.gg-topplista__info h3 a { color: var(--text); }
.gg-topplista__info h3 a:hover { color: var(--pink-dark); }
.gg-topplista__ratings { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.gg-topplista__brand {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}
.gg-count { font-size: 0.8rem; color: var(--text-light); }

/* Top lists preview cards */
.gg-topplists-preview {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--yellow-light), var(--green-light), var(--blue-light));
}
.gg-topplists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.gg-toplist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    border: 2px solid transparent;
}
.gg-toplist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}
.gg-toplist-card--sour:hover { border-color: var(--green); }
.gg-toplist-card--choco:hover { border-color: var(--yellow-dark); }
.gg-toplist-card--salty:hover { border-color: var(--blue); }
.gg-toplist-card--bubs:hover { border-color: var(--pink); }

.gg-toplist-card__emoji { font-size: 3rem; margin-bottom: 0.8rem; }
.gg-toplist-card h3 { font-family: var(--font-heading); margin-bottom: 0.3rem; }
.gg-toplist-card p { font-size: 0.9rem; color: var(--text-light); }

/* ---------- Modals ---------- */
.gg-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.gg-modal[hidden] { display: none; }

.gg-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}
.gg-modal__content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { transform: scale(0.95) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.gg-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gg-modal__close:hover { background: var(--gray-100); }

.gg-modal__content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}
.gg-modal__switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ---------- Forms ---------- */
.gg-form__group {
    margin-bottom: 1.2rem;
}
.gg-form__group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--gray-600);
}
.gg-form__group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.gg-form__group input:focus { border-color: var(--pink); }

.gg-form__message {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.5rem;
}
.gg-form__message--success { color: var(--green-dark); }
.gg-form__message--error { color: var(--pink-dark); }

/* ---------- Flash Message ---------- */
.gg-flash {
    padding: 1rem 0;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}
.gg-flash--success { background: var(--green-light); color: var(--green-dark); }
.gg-flash--error { background: var(--pink-light); color: var(--pink-dark); }

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ---------- Archive Header ---------- */
.gg-archive-header {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    text-align: center;
}
.gg-archive-header__desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* ---------- Pagination ---------- */
.gg-pagination {
    margin-top: 3rem;
    text-align: center;
}
.gg-pagination .nav-links { display: flex; justify-content: center; gap: 0.5rem; }
.gg-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--border);
    transition: all 0.2s;
}
.gg-pagination .page-numbers:hover,
.gg-pagination .page-numbers.current {
    background: var(--pink);
    color: var(--white);
    border-color: var(--pink);
}

/* ---------- Footer ---------- */
.gg-footer {
    background: var(--gray-700);
    color: var(--gray-300);
    padding: 3rem 0 0;
    margin-top: 3rem;
}
.gg-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.gg-footer__brand p {
    margin-top: 0.8rem;
    color: var(--gray-400);
}
.gg-footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.gg-footer__links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.gg-footer__links a {
    color: var(--gray-300);
    transition: color 0.2s;
}
.gg-footer__links a:hover { color: var(--pink-light); }

.gg-footer__bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--gray-400);
}

/* ---------- News Section ---------- */
.gg-news-preview {
    padding: 3rem 0;
    background: var(--white);
}
.gg-news-section { padding: 3rem 0; }

.gg-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gg-news-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}
.gg-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}
.gg-news-card__link { text-decoration: none; color: inherit; display: block; }

.gg-news-card__image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
}
.gg-news-card__image img { width: 100%; height: 100%; object-fit: cover; }
.gg-news-card__placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
}

.gg-news-card__body { padding: 1.2rem; }
.gg-news-card__date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gg-news-card__title {
    font-size: 1.15rem;
    margin: 0.4rem 0;
    line-height: 1.3;
}
.gg-news-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}
.gg-news-card__read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pink-dark);
}

/* ---------- Single News ---------- */
.gg-news-single { padding: 2rem 0; }
.gg-news-single__header { margin-bottom: 2rem; }
.gg-news-single__title { margin-bottom: 0.5rem; }
.gg-news-single__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}
.gg-news-single__cats { display: flex; gap: 0.3rem; }

.gg-news-single__layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}
.gg-news-single__content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow);
}
.gg-news-single__content p { margin-bottom: 1rem; line-height: 1.7; }
.gg-news-single__content h2 { margin: 1.5rem 0 0.8rem; }
.gg-news-single__content h3 { margin: 1.2rem 0 0.6rem; }

.gg-news-single__featured {
    position: sticky;
    top: 100px;
}
.gg-news-single__image {
    border-radius: var(--radius);
    box-shadow: 0 4px 15px var(--shadow);
}

/* ---------- Load More ---------- */
.gg-load-more {
    text-align: center;
    margin-top: 2rem;
}

/* ---------- Empty state ---------- */
.gg-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .gg-header__inner { flex-wrap: wrap; }
    .gg-menu-toggle { display: flex; }
    .gg-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .gg-nav.active { display: block; }
    .gg-nav__list {
        flex-direction: column;
        padding: 1rem 0;
    }
    .gg-header__actions {
        order: 2;
    }

    .gg-hero { padding: 2rem 0; }
    .gg-hero__decoration { display: none; }

    .candy-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }

    .gg-candy-single__layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gg-footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gg-topplists-grid { grid-template-columns: repeat(2, 1fr); }

    .gg-news-grid { grid-template-columns: 1fr; }
    .gg-news-single__layout { grid-template-columns: 1fr; }
    .gg-news-single__featured { position: static; }

    .gg-modal__content { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .gg-topplists-grid { grid-template-columns: 1fr; }
    .candy-grid { grid-template-columns: 1fr 1fr; }
    .gg-filter-bar__selects { flex-direction: column; }
    .gg-search-bar { flex-direction: column; }
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.gg-404 {
    padding: 5rem 0 6rem;
    min-height: 65vh;
    display: flex;
    align-items: center;
}

.gg-404__content {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
}

.gg-404__code {
    display: block;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(5rem, 14vw, 8rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.gg-404__title {
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.gg-404__text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.gg-404__search {
    max-width: 440px;
    margin: 0 auto 2.5rem;
}

.gg-404__search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gg-404__search-wrap:focus-within {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.gg-404__search-icon {
    color: #9ca3af;
    flex-shrink: 0;
}

.gg-404__search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    padding: 0.5rem 0.25rem;
    background: transparent;
    color: var(--text);
}

.gg-404__search-input::placeholder {
    color: #9ca3af;
}

.gg-404__search-wrap .gg-btn {
    flex-shrink: 0;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.gg-404__grid {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gg-404__card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.gg-404__card:hover {
    transform: translateY(-2px);
    border-color: var(--pink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.gg-404__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--pink);
    flex-shrink: 0;
}

.gg-404__card-icon svg {
    width: 18px;
    height: 18px;
}

.gg-404__card-title {
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

@media (max-width: 480px) {
    .gg-404 { padding: 3rem 0 4rem; }
    .gg-404__grid { gap: 0.5rem; }
    .gg-404__card { padding: 0.6rem 1rem; }
}
