/* ===========================================================
   Index Page — Hero, Category Grid, SEO Blocks
   "Sunset Glow" Theme
   =========================================================== */

/* ─────── Recommend Grid ─────── */
.gryrf-recommend-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 12px;
    padding: 16px;
    background: linear-gradient(160deg,
        rgba(45, 31, 23, .75) 0%,
        rgba(38, 26, 20, .85) 100%);
    border-radius: 16px;
    border: 1px solid rgba(249, 115, 22, .08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    position: relative;
    overflow: hidden;
}
.gryrf-recommend-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(249, 115, 22, .35), transparent);
}

.gryrf-recommend-content-hot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 16px 12px 12px;
    padding: 18px;
    background: linear-gradient(160deg,
        rgba(45, 31, 23, .85) 0%,
        rgba(38, 26, 20, .95) 100%);
    border-radius: 18px;
    border: 1px solid rgba(249, 115, 22, .12);
    box-shadow:
        0 1px 0 rgba(254, 243, 226, .04) inset,
        0 10px 28px rgba(0, 0, 0, .3);
    position: relative;
    overflow: hidden;
}
.gryrf-recommend-content-hot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb7185, #fbbf24, #f97316);
    background-size: 220% 100%;
    animation: gradientFlow 5s linear infinite;
}
.gryrf-recommend-content-hot::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle,
        rgba(249, 115, 22, .12) 0%,
        rgba(249, 115, 22, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes gradientFlow {
    0%   { background-position: 0% 0%; }
    100% { background-position: 220% 0%; }
}

.gryrf-recommend-content img,
.gryrf-recommend-content-hot img {
    width: 100%;
}

/* ─────── Category Grid Container ─────── */
.category-grid-container {
    margin: 24px 12px;
    padding: 26px 22px 22px;
    background: linear-gradient(160deg,
        rgba(45, 31, 23, .92) 0%,
        rgba(38, 26, 20, .96) 100%);
    border-radius: 18px;
    border: 1px solid rgba(249, 115, 22, .12);
    box-shadow:
        0 1px 0 rgba(254, 243, 226, .04) inset,
        0 12px 30px rgba(0, 0, 0, .3);
    position: relative;
    overflow: hidden;
}
.category-grid-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #fb7185, #fbbf24);
}
.category-grid-container::after {
    content: '';
    position: absolute;
    top: -80px;
    left: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle,
        rgba(251, 113, 133, .12) 0%,
        rgba(251, 113, 133, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.category-grid-container h2 {
    color: #fef3e2;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    font-weight: 800;
    text-align: center;
    letter-spacing: .3px;
    position: relative;
    z-index: 1;
}
.category-grid-container h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb7185);
    margin: 8px auto 0;
    border-radius: 3px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.category-item {
    position: relative;
    height: 104px;
    background: linear-gradient(160deg,
        rgba(56, 38, 24, .85) 0%,
        rgba(38, 26, 20, .95) 100%);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, .08);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.category-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(249, 115, 22, 0) 0%,
        rgba(251, 113, 133, 0) 100%);
    opacity: 0;
    transition: opacity .3s ease;
    border-radius: 14px;
}
.category-item:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, .35);
    box-shadow:
        0 12px 28px rgba(249, 115, 22, .2),
        0 0 0 1px rgba(249, 115, 22, .12);
}
.category-item:hover::before {
    opacity: 1;
    background: linear-gradient(135deg,
        rgba(249, 115, 22, .1) 0%,
        rgba(251, 113, 133, .06) 100%);
}

.category-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f97316 0%, #fb7185 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow:
        0 6px 16px rgba(249, 115, 22, .35),
        0 0 0 3px rgba(249, 115, 22, .08);
    transition: all .3s ease;
}
.category-item:hover .category-icon {
    transform: scale(1.1) rotate(-6deg);
    box-shadow:
        0 8px 22px rgba(249, 115, 22, .5),
        0 0 0 3px rgba(249, 115, 22, .15);
}
.category-icon svg {
    width: 20px;
    height: 20px;
    fill: #fef3e2;
}

.category-name {
    font-size: .82rem;
    font-weight: 600;
    color: #d6bfa6;
    text-align: center;
    z-index: 2;
    line-height: 1.3;
    transition: color .25s ease;
}
.category-item:hover .category-name {
    color: #fbbf24;
}

/* ─────── SEO Content Section ─────── */
.seo-content-section {
    background: linear-gradient(160deg,
        rgba(45, 31, 23, .88) 0%,
        rgba(38, 26, 20, .94) 100%);
    padding: 32px 22px;
    margin: 28px 12px;
    border-radius: 18px;
    border: 1px solid rgba(249, 115, 22, .1);
    box-shadow:
        0 1px 0 rgba(254, 243, 226, .04) inset,
        0 10px 28px rgba(0, 0, 0, .28);
    position: relative;
    overflow: hidden;
}
.seo-content-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle,
        rgba(251, 191, 36, .08) 0%,
        rgba(251, 191, 36, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.seo-content-section h2 {
    color: #fef3e2;
    text-align: center;
    font-size: 1.4rem;
    margin: 0 0 24px;
    font-weight: 800;
    letter-spacing: -.2px;
    position: relative;
}
.seo-content-section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb7185);
    margin: 10px auto 0;
    border-radius: 3px;
}

.seo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.benefit-item {
    background: linear-gradient(160deg,
        rgba(56, 38, 24, .5) 0%,
        rgba(38, 26, 20, .6) 100%);
    padding: 20px 18px;
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, .08);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}
.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #f97316, #fb7185);
    border-radius: 3px;
    transition: height .3s ease;
}
.benefit-item:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, .25);
    background: linear-gradient(160deg,
        rgba(56, 38, 24, .7) 0%,
        rgba(38, 26, 20, .8) 100%);
    box-shadow: 0 10px 22px rgba(249, 115, 22, .12);
}
.benefit-item:hover::before {
    height: 100%;
}
.benefit-item h3 {
    color: #fbbf24;
    font-size: 1.02rem;
    margin: 0 0 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.benefit-item h3::before {
    content: '✦';
    color: #f97316;
    font-size: .9rem;
}
.benefit-item p {
    color: #d6bfa6;
    line-height: 1.7;
    font-size: .88rem;
    margin: 0;
}

/* ─────── Game Types Section ─────── */
.game-types-section {
    background: linear-gradient(160deg,
        rgba(28, 20, 16, .6) 0%,
        rgba(38, 26, 20, .7) 100%);
    padding: 32px 22px;
    margin: 28px 12px;
    border-radius: 18px;
    border: 1px solid rgba(249, 115, 22, .08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    position: relative;
    overflow: hidden;
}
.game-types-section::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle,
        rgba(249, 115, 22, .1) 0%,
        rgba(249, 115, 22, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.game-types-section h2 {
    color: #fef3e2;
    text-align: center;
    font-size: 1.4rem;
    margin: 0 0 24px;
    font-weight: 800;
    letter-spacing: -.2px;
    position: relative;
}
.game-types-section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb7185);
    margin: 10px auto 0;
    border-radius: 3px;
}

.game-type-info h3 {
    color: #fb923c;
    font-size: 1.08rem;
    margin: 22px 0 8px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.game-type-info h3::before {
    content: '◆';
    color: #f97316;
    font-size: .7rem;
}
.game-type-info h3:first-of-type {
    margin-top: 6px;
}
.game-type-info p {
    color: #d6bfa6;
    line-height: 1.75;
    font-size: .92rem;
    margin: 0 0 12px;
    padding-left: 18px;
}

/* ─────── Category Subtitle ─────── */
.category-subtitle {
    color: #a89484;
    font-size: 1rem;
    text-align: center;
    margin: 14px 0 28px 0;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ─────── Recommend Item (List style) ─────── */
.recommend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    margin: 14px 0;
    position: relative;
}
.recommend-item a {
    align-items: center;
    justify-self: center;
    text-decoration: none;
    width: 100%;
}
.recommend-item img {
    width: 100%;
    object-fit: contain;
    border-radius: 10px;
}
.recommend-item-info {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    flex-wrap: wrap;
    position: relative;
}
.recommend-item-info h3 {
    color: #fef3e2;
    font-size: .9rem;
    margin: 0 0 4px;
    font-weight: 700;
}
.recommend-item-info p {
    color: #a89484;
    font-size: .78rem;
    margin: 4px 0 0;
    font-weight: 500;
}

.recommend-item-btn {
    display: flex;
    width: 100%;
    height: 32px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, .3);
    transition: all .25s ease;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.recommend-item-btn a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    letter-spacing: .3px;
}
.recommend-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, .45);
}
.recommend-item-btn img {
    width: 28px;
    height: 16px;
}

/* ─────── Responsive ─────── */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-item {
        height: 92px;
        border-radius: 12px;
    }
    .category-icon {
        width: 36px;
        height: 36px;
    }
    .category-icon svg {
        width: 18px;
        height: 18px;
    }
    .category-name {
        font-size: .78rem;
    }
    .seo-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-grid-container {
        padding: 22px 16px 18px;
        margin: 20px 10px;
    }
    .gryrf-recommend-content,
    .gryrf-recommend-content-hot {
        gap: 10px;
        padding: 12px;
        margin: 10px;
    }
    .seo-content-section,
    .game-types-section {
        margin: 22px 10px;
        padding: 24px 18px;
    }
    .category-item {
        height: 80px;
    }
    .category-grid-container h2 {
        font-size: 1.1rem;
    }
}
