/* Ask Goldie Landing Page - Simplified Design */

/* CSS Variables */
:root {
    --gold-primary: #F5A623;
    --gold-light: #FFD93D;
    --gold-dark: #E8960C;
    --cream: #FFF9F0;
    --cream-dark: #FFF3E0;
    --text-primary: #2D2D2D;
    --text-secondary: #5A5A5A;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 20px rgba(245, 166, 35, 0.15);
    --shadow-hover: 0 8px 30px rgba(245, 166, 35, 0.25);
    --radius-large: 24px;
    --radius-medium: 16px;
    --transition: all 0.3s ease;

    /* Senior-friendly sizing */
    --font-size-base: 18px;
    --font-size-large: 22px;
    --font-size-xlarge: 28px;
    --font-size-hero: 42px;
    --spacing-unit: 24px;
}

/* Landing Page Container */
.gc-landing-page {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    min-height: 100vh;
    padding: 40px 24px 40px;
}

.gc-landing-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===========================================
   GOLDIE HERO SECTION - Animated Blob Waves
   =========================================== */

/* Hero Section Container */
.gc-hero-section {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 420px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shadow underneath for floating effect */
.gc-hero-shadow {
    position: absolute;
    width: 75%;
    height: 40%;
    bottom: -10%;
    background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
    filter: blur(20px);
}

/* Warm glow behind waves */
.gc-hero-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.3) 0%, transparent 60%);
    filter: blur(30px);
    animation: gc-warmPulse 4s ease-in-out infinite;
}

@keyframes gc-warmPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Animated wave layers */
.gc-wave-layer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: gc-morph 8s ease-in-out infinite;
}

.gc-wave-1 {
    background: linear-gradient(135deg, #E8960C 0%, #F5A623 100%);
    transform: scale(1.18);
    animation-delay: 0s;
    filter: blur(2px);
    opacity: 0.6;
    box-shadow: 0 20px 40px rgba(232, 150, 12, 0.3);
}

.gc-wave-2 {
    background: linear-gradient(135deg, #FFD93D 0%, #F5A623 100%);
    transform: scale(1.13);
    animation-delay: -2s;
    opacity: 0.75;
    box-shadow: 0 15px 35px rgba(255, 217, 61, 0.3);
}

.gc-wave-3 {
    background: linear-gradient(135deg, #FF9A56 0%, #FFD93D 100%);
    transform: scale(1.08);
    animation-delay: -4s;
    opacity: 0.85;
    box-shadow: 0 10px 30px rgba(255, 154, 86, 0.3);
}

.gc-wave-4 {
    background: linear-gradient(135deg, #FFC857 0%, #FFE066 100%);
    transform: scale(1.04);
    animation-delay: -6s;
    box-shadow:
        0 8px 25px rgba(255, 200, 87, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.5);
}

@keyframes gc-morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 50% 70% 50%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

/* Main content circle */
.gc-hero-content {
    position: relative;
    z-index: 10;
    width: 82%;
    height: 82%;
    background: linear-gradient(135deg, #4C1D95 0%, #5B21B6 40%, #7C3AED 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    box-shadow:
        0 30px 60px rgba(76, 29, 149, 0.4),
        0 0 0 5px rgba(255, 217, 61, 0.4),
        0 0 0 10px rgba(255, 200, 87, 0.2),
        inset 0 2px 0 rgba(255,255,255,0.1);
}

/* Goldie Avatar - No golden circle, bigger to fill purple area */
.gc-goldie-avatar {
    width: 220px;
    height: 220px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    animation: gc-float 3s ease-in-out infinite;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.gc-goldie-avatar img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

.gc-goldie-avatar:hover {
    transform: scale(1.05);
}

.gc-goldie-avatar.speaking {
    animation: gc-float 3s ease-in-out infinite, gc-speak 0.15s ease-in-out infinite;
}

@keyframes gc-speak {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes gc-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Sound waves animation */
.gc-sound-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
}

.gc-sound-waves.active::before,
.gc-sound-waves.active::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 3px solid rgba(255, 217, 61, 0.6);
    border-radius: 50%;
    animation: gc-soundWave 1.5s ease-out infinite;
}

.gc-sound-waves.active::after {
    animation-delay: 0.5s;
}

@keyframes gc-soundWave {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

/* Text display - 3 lines tighter */
.gc-text-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: auto;
    line-height: 1.3;
}

.gc-text-line {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-out;
    margin: 0;
    padding: 0;
}

.gc-text-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.gc-text-line.typing::after {
    content: '|';
    animation: gc-blink 0.8s infinite;
    margin-left: 2px;
}

.gc-text-line-1 {
    font-size: 24px;
}

.gc-text-line-2 {
    font-size: 20px;
    color: #FFD93D;
}

.gc-text-line-3 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes gc-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Speak button - hidden, auto-play on load instead */
.gc-speak-btn {
    display: none;
}

/* Section Title */
.gc-section-title {
    font-size: var(--font-size-xlarge);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
}

/* Category Cards */
.gc-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 64px;
}

.gc-category-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-large);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
}

.gc-category-card:hover, .gc-category-card:focus {
    border-color: var(--gold-primary);
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
    outline: none;
}

.gc-category-card:focus-visible {
    outline: 3px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Urgent Category */
.gc-category-card.urgent {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEB 100%);
    border: 2px solid #E74C3C;
}

.gc-category-card.urgent:hover {
    border-color: #C0392B;
}

.gc-category-card.urgent .gc-category-title {
    color: #C0392B;
}

.gc-category-card.urgent .gc-category-arrow {
    color: #E74C3C;
}

.gc-category-card.urgent .gc-category-icon {
    background: transparent;
}

/* Document Helper Category */
.gc-category-card.document-helper {
    background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
    border: 2px solid transparent;
}

.gc-category-card.document-helper:hover {
    border-color: #3498DB;
}

.gc-category-card.document-helper .gc-category-arrow {
    color: #3498DB;
}

/* Category Icon */
.gc-category-icon {
    width: 220px;
    height: 220px;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gc-category-icon img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

/* Category Content */
.gc-category-content {
    flex: 1;
}

.gc-category-title {
    font-size: var(--font-size-xlarge);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.1;
}

.gc-category-desc {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Category Arrow */
.gc-category-arrow {
    font-size: 32px;
    color: var(--gold-primary);
    flex-shrink: 0;
}

/* Document Tags */
.gc-document-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.gc-doc-tag {
    background: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid #D6EAF8;
}

/* Features Section */
.gc-features {
    background: var(--cream);
    border-radius: var(--radius-large);
    padding: 16px 8px;
    margin-bottom: 40px;
}

.gc-features-title {
    font-size: var(--font-size-xlarge);
    font-weight: 700;
    color: var(--gold-dark);
    text-align: center;
    margin-bottom: 16px;
}

.gc-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gc-feature-item {
    text-align: center;
    padding: 0;
    margin: 0;
}

/* Feature Icon */
.gc-feature-icon {
    width: 100%;
    height: 220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-feature-icon img {
    max-width: 100%;
    height: 220px;
    object-fit: contain;
}

.gc-feature-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gc-feature-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Feature text removed - using hardcoded translations instead */

/* Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 32px;
        --font-size-xlarge: 24px;
    }

    .gc-hero-section {
        width: 100%;
        height: 360px;
        max-width: 400px;
    }

    .gc-goldie-avatar {
        width: 120px;
        height: 120px;
    }

    .gc-goldie-avatar img {
        width: 120px;
        height: 120px;
    }

    .gc-text-line-1 {
        font-size: 20px;
    }

    .gc-text-line-2 {
        font-size: 17px;
    }

    .gc-text-line-3 {
        font-size: 15px;
    }

    .gc-speak-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .gc-category-card {
        padding: 8px;
        gap: 12px;
    }

    .gc-category-icon {
        width: 140px;
        height: 140px;
        min-width: 140px;
    }

    .gc-category-icon img {
        width: 140px;
        height: 140px;
    }

    .gc-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gc-feature-icon {
        height: 200px;
    }

    .gc-feature-icon img {
        height: 200px;
    }

}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gc-category-card {
        border: 3px solid var(--text-primary);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gc-wave-layer,
    .gc-goldie-avatar,
    .gc-hero-glow,
    .gc-sound-waves::before,
    .gc-sound-waves::after {
        animation: none !important;
    }

    .gc-wave-layer {
        border-radius: 50%;
    }

    * {
        transition: none !important;
    }
}