/* Carrying Culture Project - Learn Page Styles */
/* Aesthetic: Academic warmth with editorial sophistication */

:root {
    /* Carrying Culture Color Palette - Inspired by Angkor stone, traditional textiles, and sunset skies */
    --cc-stone: #8b7355;
    --cc-terracotta: #c85a3e;
    --cc-burgundy: #7c2d3a;
    --cc-cream: #f8f4ed;
    --cc-parchment: #e8dcc8;
    --cc-deep-teal: #2c5f5d;
    --cc-gold: #d4a373;
    --cc-charcoal: #2a2520;
    --cc-warm-gray: #5a5047;

    /* Shadows and effects */
    --cc-shadow-soft: 0 4px 20px rgba(124, 45, 58, 0.08);
    --cc-shadow-medium: 0 8px 30px rgba(124, 45, 58, 0.12);
    --cc-shadow-strong: 0 12px 40px rgba(124, 45, 58, 0.18);
    --cc-glow: 0 0 30px rgba(212, 163, 115, 0.15);
}

/* Typography Override */
.learn-page {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.learn-page h1,
.learn-page h2,
.learn-page h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 700;
}

.learn-page p,
.learn-page a {
    font-family: 'Work Sans', sans-serif;
}

/* Hero Section */
.learn-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cc-burgundy) 0%, var(--cc-deep-teal) 100%);
}

.learn-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px);
    animation: subtle-shift 20s ease-in-out infinite;
}

@keyframes subtle-shift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.learn-hero-content {
    position: relative;
    z-index: 2;
    padding: 3.5rem 0;
    width: 100%;
}

.learn-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--cc-cream);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.learn-hero-description {
    max-width: 800px;
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.learn-hero-description p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--cc-parchment);
    margin: 0;
    font-weight: 400;
}

.learn-hero-description strong {
    color: var(--cc-cream);
    font-weight: 600;
}

.learn-hero-description a {
    color: var(--cc-gold);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.learn-hero-description a:hover {
    color: var(--cc-cream);
    text-decoration-thickness: 2px;
}

/* Resources Section */
.resources-section {
    padding: 4.5rem 0 5rem;
    background: var(--cc-cream);
    position: relative;
}

.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cc-stone) 50%, transparent);
    opacity: 0.3;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(380px, 450px));
    gap: 2.5rem;
    margin-top: 2rem;
    justify-content: center;
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--cc-shadow-soft);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(40px);
    animation: card-appear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cc-burgundy), var(--cc-terracotta), var(--cc-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card[data-delay="1"] {
    animation-delay: 0.1s;
}

.resource-card[data-delay="2"] {
    animation-delay: 0.2s;
}

.resource-card[data-delay="3"] {
    animation-delay: 0.3s;
}

@keyframes card-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cc-shadow-strong), var(--cc-glow);
}

.resource-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.resource-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cc-parchment) 0%, var(--cc-cream) 100%);
}

.resource-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.resource-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(124, 45, 58, 0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.resource-card:hover .resource-overlay {
    opacity: 1;
}

.resource-launch {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-card:hover .resource-launch {
    transform: translateY(0);
}

.resource-content {
    padding: 2rem;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    gap: 1rem;
}

.resource-type {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--cc-warm-gray);
}

.resource-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--cc-deep-teal), var(--cc-burgundy));
    color: white;
}

.resource-status-soon {
    background: linear-gradient(135deg, var(--cc-stone), var(--cc-warm-gray));
}

.resource-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--cc-charcoal);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.resource-card:hover .resource-title {
    color: var(--cc-burgundy);
}

.resource-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cc-warm-gray);
    margin-bottom: 1.2rem;
}

.resource-features {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.feature-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 3px;
    background: var(--cc-parchment);
    color: var(--cc-warm-gray);
    border: 1px solid var(--cc-stone);
    border-opacity: 0.2;
}

/* Coming Soon Cards */
.resource-card-coming-soon {
    opacity: 0.75;
}

.resource-card-coming-soon:hover {
    opacity: 0.85;
    transform: translateY(-4px);
}

.resource-card-placeholder {
    cursor: default;
}

.resource-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cc-parchment) 0%, var(--cc-cream) 100%);
    position: relative;
    overflow: hidden;
}

.resource-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(139, 115, 85, 0.03) 20px, rgba(139, 115, 85, 0.03) 40px);
}

.placeholder-icon {
    color: var(--cc-stone);
    opacity: 0.4;
    z-index: 1;
}

.resource-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: grayscale(30%);
}

/* About Project Section */
.about-project-section {
    padding: 4.5rem 0 5rem;
    background: white;
    position: relative;
}

.about-project-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cc-stone) 50%, transparent);
    opacity: 0.3;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--cc-charcoal);
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--cc-burgundy), var(--cc-gold));
}

.about-body {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--cc-charcoal);
}

.about-body p {
    margin-bottom: 1.5rem;
}

.about-body strong {
    font-weight: 600;
    color: var(--cc-burgundy);
}

.about-body a {
    color: var(--cc-deep-teal);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.about-body a:hover {
    color: var(--cc-burgundy);
    text-decoration-thickness: 2px;
}

.about-closing {
    font-style: italic;
    color: var(--cc-warm-gray);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cc-parchment);
}

/* Responsive Design */
@media (max-width: 768px) {
    .learn-hero {
        min-height: 40vh;
    }

    .learn-hero-title {
        font-size: 2.5rem;
    }

    .learn-hero-description p {
        font-size: 1.05rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-content: stretch;
    }

    .resource-image-wrapper {
        height: 220px;
    }

    .resource-title {
        font-size: 1.6rem;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-body {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .learn-hero-title {
        font-size: 2.3rem;
    }

    .learn-hero-description p {
        font-size: 1rem;
    }

    .resource-content {
        padding: 1.5rem;
    }

    .about-title {
        font-size: 2rem;
    }
}
