/* ============================================
   RESOURCES.CSS — Horizons Luxury Dark Mode (Show / Category Page)
   ============================================ */

/* ── Category Hero Section ── */
.category-hero {
    padding: 2.5rem 0 1.5rem;
}

.category-hero-content {
    background: linear-gradient(135deg, #070b13 0%, #101726 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
}

.category-hero-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-gold);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1.25rem;
}

.category-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.category-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 580px;
}

.category-hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #101726;
}

.category-hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ── Category Main Content Section ── */
.category-content-section {
    padding: 3rem 0;
}

.category-content-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.category-description {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.category-description h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-content-text {
    font-size: 1.02rem;
    color: #cbd5e1;
    line-height: 1.85;
    word-break: break-word;
    overflow-wrap: break-word;
}

.category-content-text p {
    margin-bottom: 1.5rem;
}

.category-content-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1rem;
}

.category-content-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 1.5rem 0 0.75rem;
}

.category-content-text ul,
.category-content-text ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.category-content-text li {
    margin-bottom: 0.6rem;
}

.category-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.25rem 0;
}

.category-content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-content-text table th,
.category-content-text table td {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    white-space: nowrap;
}

.category-content-text table th {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 700;
}

/* ── Related Categories (3-Col Grid) ── */
.related-categories-section {
    padding: 2.5rem 0 4rem;
}

.related-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.related-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    border-color: rgba(245, 158, 11, 0.4);
}

.related-category-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #172033;
}

.related-category-overlay {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-category-overlay h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.related-category-overlay p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.btn-explore {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    align-self: flex-start;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
}

.btn-explore:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #080d16;
    border-color: transparent;
    transform: translateY(-1px);
}

/* ── Responsive Adaptations ── */
@media (max-width: 1024px) {
    .related-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 860px) {
    .category-hero {
        padding: 1.5rem 0 1rem;
    }

    .category-hero-content {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 1.75rem;
        border-radius: var(--radius-lg);
    }

    .category-title {
        font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    }

    .category-desc {
        font-size: 0.95rem;
    }

    .category-content-section {
        padding: 1.5rem 0;
    }

    .category-description {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .category-description h2 {
        font-size: 1.45rem;
        margin-bottom: 1.25rem;
    }

    .category-content-text {
        font-size: 0.95rem;
        line-height: 1.75;
    }
}

@media (max-width: 640px) {
    .category-hero-content {
        padding: 1.5rem 1.25rem;
        gap: 1.25rem;
    }

    .category-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .category-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .category-desc {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .category-description {
        padding: 1.5rem 1.15rem;
    }

    .category-description h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .category-content-text {
        font-size: 0.9rem;
    }

    .related-categories-section {
        padding: 1.5rem 0 3rem;
    }

    .related-categories-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .related-category-overlay {
        padding: 1.25rem 1.1rem;
    }

    .related-category-overlay h3 {
        font-size: 1.15rem;
    }

    .btn-explore {
        width: 100%;
        justify-content: center;
        min-height: 42px;
    }
}

