/**
 * Home Page Styles
 * Light, clean, compact
 */

/* Hero Section - Simple Banner */
.hero-section {
    background: linear-gradient(135deg, #f7fef9 0%, #f0fdf4 50%, #dcfce7 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: rotate(-20deg);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    color: #111827;
    margin: 0 0 8px 0;
    letter-spacing: -1px;
}

.hero-5 {
    color: #ff9800;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #15803d;
    margin: 0 0 6px 0;
}

.hero-desc {
    font-size: 14px;
    color: #16a34a;
    margin: 0 0 24px 0;
}

/* Hero Search */
.hero-search {
    display: flex;
    max-width: 520px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 4px 20px rgba(22,163,74,0.15);
}

.hero-search__input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    outline: none;
}

.hero-search__input::placeholder {
    color: #999;
}

.hero-search__btn {
    width: 50px;
    height: 50px;
    background: #16a34a;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-search__btn:hover {
    background: #15803d;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat__value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #166534;
}

.hero-stat__label {
    font-size: 12px;
    color: #16a34a;
    font-weight: 500;
}

/* Quick Categories */
.quick-cats {
    margin-bottom: 30px;
}

.quick-cats__grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-cat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.quick-cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.quick-cat i {
    font-size: 16px;
    color: var(--cat-color, #16a34a);
}

.quick-cat span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.section-title i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fef9;
    border-radius: 10px;
    color: #16a34a;
    font-size: 15px;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    background: #16a34a;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.section-link:hover {
    background: #15803d;
    color: white;
}

/* Games Section */
.games-section {
    margin-bottom: 40px;
}

/* Categories Grid */
.categories-section {
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.category-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f7fef9 0%, #f0fdf4 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.category-card__icon i {
    font-size: 20px;
    color: var(--cat-color, #16a34a);
}

.category-card__info {
    flex: 1;
    min-width: 0;
}

.category-card__name {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card:hover .category-card__name {
    color: #16a34a;
}

.category-card__count {
    font-size: 12px;
    color: #888;
}

.category-card__arrow {
    color: #ccc;
    font-size: 14px;
    transition: all 0.25s ease;
}

.category-card:hover .category-card__arrow {
    color: #16a34a;
    transform: translateX(4px);
}

/* Mods Section */
.mods-section .section-title i {
    background: #fff3e0;
    color: #ff9800;
}

/* ===================== RECOMMENDED SLIDER ===================== */
.recommended-section {
    margin-bottom: 40px;
}

.recommended-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.recommended-grid::-webkit-scrollbar {
    display: none;
}

.recommended-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    display: flex;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f7fef9, #f0fdf4);
    border-radius: 16px;
    text-decoration: none;
}

.recommended-card__image {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recommended-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recommended-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #16a34a;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    width: fit-content;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 24px 0;
        margin-bottom: 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-desc {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .hero-search {
        margin-bottom: 20px;
    }
    
    .hero-search__input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .hero-search__btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stat__value {
        font-size: 18px;
    }
    
    .hero-stat__label {
        font-size: 11px;
    }
    
    .quick-cats__grid {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        margin: 0 -16px;
        padding: 0 16px 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .quick-cats__grid::-webkit-scrollbar {
        display: none;
    }
    
    .quick-cat {
        flex-shrink: 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .section-title i {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .games-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .hero-stat__value {
        font-size: 16px;
    }
}

/* ==========================================
   About Mods Section
   ========================================== */

.about-mods-section {
    background: linear-gradient(180deg, #f7fef9 0%, #f0fdf4 50%, #f7fef9 100%);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    border: 1px solid #f0fdf4;
    position: relative;
    overflow: hidden;
}

.about-mods-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(22,163,74,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.about-mods-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.about-mods-title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.about-mods-title i {
    color: #16a34a;
    font-size: 32px;
}

.about-mods-subtitle {
    font-size: 17px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Intro Cards */
.about-mods-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.intro-card {
    display: flex;
    gap: 20px;
    background: white;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #9ca3af;
    transition: all 0.3s;
}

.intro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: #16a34a;
}

.intro-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    flex-shrink: 0;
}

.intro-card__icon i {
    font-size: 24px;
    color: #15803d;
}

.intro-card__content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.intro-card__content p {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
}

/* Mod Types Grid */
.mod-types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.mod-type-card {
    background: white;
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid #9ca3af;
    transition: all 0.3s;
}

.mod-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.mod-type__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 22px;
}

.mod-type__title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.mod-type__desc {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* Mod Type Colors */
.mod-type--menu .mod-type__icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}
.mod-type--menu:hover { border-color: #f59e0b; }

.mod-type--money .mod-type__icon {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    color: #ca8a04;
}
.mod-type--money:hover { border-color: #eab308; }

.mod-type--unlock .mod-type__icon {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #9333ea;
}
.mod-type--unlock:hover { border-color: #16a34a; }

.mod-type--premium .mod-type__icon {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #db2777;
}
.mod-type--premium:hover { border-color: #ec4899; }

.mod-type--noads .mod-type__icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}
.mod-type--noads:hover { border-color: #ef4444; }

.mod-type--download .mod-type__icon {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
}
.mod-type--download:hover { border-color: #16a34a; }

/* Footer */
.about-mods-footer {
    text-align: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 14px;
}

.about-mods-footer p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.about-mods-footer i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 1200px) {
    .mod-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .about-mods-section {
        padding: 36px 24px;
    }
    
    .about-mods-intro {
        grid-template-columns: 1fr;
    }
    
    .mod-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-mods-title {
        font-size: 22px;
    }
    
    .about-mods-title i {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .about-mods-section {
        padding: 28px 20px;
        border-radius: 20px;
    }
    
    .intro-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    
    .intro-card__icon {
        margin: 0 auto;
    }
    
    .mod-types-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .mod-type-card {
        padding: 20px 12px;
    }
    
    .mod-type__icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .mod-type__title {
        font-size: 13px;
    }
    
    .mod-type__desc {
        font-size: 11px;
    }
    
    .about-mods-footer p {
        font-size: 13px;
        flex-direction: column;
        gap: 6px;
    }
}
