/* Resources Page Styles */
/* Theme-harmonized design using QuikRSVP color palette */

/* ============================================================================
   Language Selector (matching gifts-landing.css pattern)
   ============================================================================ */
.language-selector {
    position: relative;
}

.language-toggle {
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.language-toggle:hover {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    display: none;
    z-index: 1000;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: block;
    padding: 10px 16px;
    color: var(--neutral-700);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.language-option:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.language-option.active {
    background: var(--primary-100);
    color: var(--primary-700);
    font-weight: 600;
}

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero-resources {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/images/resources-hero.png') center center / cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(90, 63, 122, 0.85) 0%,
            rgba(90, 63, 122, 0.7) 30%,
            rgba(90, 63, 122, 0.5) 60%,
            rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    padding: 80px 20px;
}

.hero-resources h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary {
    background: var(--rose-gold-500);
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 119, 0.4);
}

.btn-hero-primary:hover {
    background: var(--rose-gold-600);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 119, 0.5);
    color: white;
}

/* ============================================================================
   Category Filter Pills
   ============================================================================ */
.category-filter {
    padding: 40px 0;
    background: var(--neutral-50);
}

.filter-pills {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-pill {
    background: white;
    border: 2px solid var(--neutral-300);
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-pill:hover {
    border-color: var(--primary-400);
    background: var(--primary-50);
    color: var(--primary-700);
}

.filter-pill.active {
    background: var(--primary-700);
    border-color: var(--primary-700);
    color: white;
}

/* ============================================================================
   Featured Section
   ============================================================================ */
.featured-section {
    padding: 60px 0;
    background: white;
}


/* Compact Sidebar Cards to reduce overall section height */
.featured-section .col-lg-4 .resource-card .card-image {
    height: 120px;
}

.featured-section .col-lg-4 .resource-card .card-content {
    padding: 16px;
}

.featured-section .col-lg-4 .resource-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.featured-section .col-lg-4 .resource-card .card-preview {
    font-size: 13px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-section .col-lg-4 .resource-card .card-meta {
    margin-bottom: 8px;
}

.featured-badge {
    display: inline-block;
    background: var(--rose-gold-500);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ============================================================================
   Resource Cards
   ============================================================================ */
.resources-grid {
    padding: 60px 0 80px;
    background: var(--neutral-50);
}

.resource-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--rose-gold-500);
}

.resource-card-wide {
    min-height: 320px;
}

/* Card Images - Responsive for bento layout */
.card-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.resource-card-large .card-image {
    height: 180px;
}

.resource-card-wide .card-image {
    height: 120px;
}

.resource-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Category Badges - Using theme colors */
.category-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-guide {
    background: var(--primary-50);
    color: var(--primary-700);
}

.badge-article {
    background: var(--secondary-100);
    color: var(--secondary-700);
}

.badge-checklist {
    background: var(--success-100);
    color: var(--success-700);
}

.badge-tips {
    background: var(--rose-gold-100);
    color: var(--rose-gold-800);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--neutral-600);
    font-size: 13px;
}

.read-time i {
    font-size: 14px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: 12px;
    line-height: 1.3;
}

.resource-card-large .card-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.card-preview {
    color: var(--neutral-600);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-700);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}

.card-link:hover {
    color: var(--primary-800);
    gap: 10px;
}

.card-link i {
    transition: transform 0.2s;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* ============================================================================
   CTA Section
   ============================================================================ */
.cta-section {
    background: linear-gradient(135deg,
            var(--primary-700) 0%,
            var(--primary-800) 100%);
    padding: 80px 0;
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-cta {
    background: var(--rose-gold-500);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 119, 0.3);
}

.btn-cta:hover {
    background: var(--rose-gold-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 119, 0.4);
    color: white;
}

/* ============================================================================
   Footer
   ============================================================================ */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: 60px 0 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: var(--neutral-400);
    margin-bottom: 24px;
    max-width: 400px;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--neutral-700);
    text-align: center;
    color: var(--neutral-500);
}

/* ============================================================================
   Responsive Design
   ============================================================================ */
@media (max-width: 992px) {
    .hero-resources {
        min-height: 420px;
    }

    .hero-resources h1 {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-content {
        padding: 60px 20px;
    }

    .resource-card-large .card-title {
        font-size: 1.75rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-resources {
        min-height: 380px;
    }

    .hero-content {
        padding: 50px 16px;
    }

    .hero-resources h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .btn-hero-primary {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .filter-pills {
        gap: 8px;
    }

    .filter-pill {
        padding: 8px 18px;
        font-size: 13px;
    }

    .resource-card-large {
        min-height: auto;
    }

    .resource-card-wide {
        min-height: auto;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .resource-card-large .card-title {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .decorative-element {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .hero-resources h1 {
        font-size: 1.75rem;
    }

    .btn-hero-primary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-cta {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .card-image-placeholder {
        height: 160px;
        font-size: 48px;
    }

    .resource-card-large .card-image-placeholder {
        height: 200px;
    }
}
