/* =============================================================================
   WELCOME PAGE STYLES
   Latin to English API - Clean Neumorphic Design
   ============================================================================= */

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xxl) var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    animation: slideInUp 0.6s ease-out;
}

.hero h1 {
    font-size: 2.8em;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.15em;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.hero p:last-of-type {
    color: var(--color-text-muted);
    font-size: 0.9em;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: var(--spacing-lg);
}

.hero-logo img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 24px rgba(142, 36, 170, 0.2),
        var(--shadow-neu-out);
    transition: all var(--transition-normal);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: var(--spacing-md);
    border: 3px solid rgba(142, 36, 170, 0.15);
}

.hero-logo img:hover {
    transform: scale(1.05);
    box-shadow:
        0 12px 32px rgba(142, 36, 170, 0.3),
        var(--shadow-neu-out-lg);
}

/* =============================================================================
   WIDGET ROW (Side by side on large screens)
   ============================================================================= */

.widget-row {
    display: flex;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.widget-row > div {
    flex: 1;
    min-width: 0;
}

.widget-row .feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .widget-row {
        flex-direction: column;
    }
}

/* =============================================================================
   FEATURE CARDS
   ============================================================================= */

.feature-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    animation: cardSlideIn 0.5s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.feature-card h3 {
    color: var(--color-text);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.feature-card h3 .icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(142, 36, 170, 0.08);
    color: var(--color-primary);
    font-size: 1em;
    margin-right: var(--spacing-xs);
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-size: 0.95em;
}

/* API Example blocks in feature cards */
.api-example {
    background: var(--color-bg-inset);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85em;
    box-shadow: var(--shadow-neu-in);
}

.api-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.api-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* =============================================================================
   FEATURES GRID
   ============================================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* =============================================================================
   WORD OF THE DAY WIDGET
   ============================================================================= */

.wotd-card .wotd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.wotd-card .wotd-header h3 {
    margin-bottom: 0;
}

.wotd-card .wotd-date {
    font-size: 0.85em;
    color: var(--color-text-muted);
    font-weight: 500;
}

.wotd-card .wotd-word {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.wotd-card .wotd-pos {
    font-size: 0.85em;
    color: var(--color-primary);
    font-style: italic;
    background: rgba(142, 36, 170, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
}

.wotd-card .wotd-definitions {
    margin-bottom: var(--spacing-lg);
}

.wotd-card .wotd-definition {
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
}

.wotd-card .wotd-def-num {
    color: var(--color-primary);
    font-weight: 600;
    margin-right: 6px;
}

/* Example sentence box */
.wotd-example {
    background: rgba(142, 36, 170, 0.04);
    border-left: 3px solid var(--color-primary);
    padding: var(--spacing-md);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: var(--spacing-lg);
}

.wotd-example-label {
    font-size: 0.75em;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wotd-example-latin {
    font-style: italic;
    color: var(--color-primary-dark);
    font-size: 1em;
    margin-bottom: 6px;
}

.wotd-example-english {
    color: var(--color-text-secondary);
    font-size: 0.9em;
}

.wotd-example-author {
    color: var(--color-text-muted);
    font-size: 0.8em;
    margin-top: 8px;
}

.wotd-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: auto;
}

.wotd-actions .cta-button {
    font-size: 0.85em;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* Loading state */
.wotd-loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-muted);
}

.wotd-loading i {
    animation: spin 1s linear infinite;
}

/* Error state */
.wotd-error {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-error);
    font-size: 0.9em;
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */

.cta-section {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xxl);
    text-align: center;
    box-shadow: var(--shadow-card);
    animation: slideInUp 0.6s ease-out 0.3s both;
}

.cta-section h2 {
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5em;
    font-weight: 600;
}

.cta-section p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 0.95em;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-xl);
        border-radius: var(--radius-lg);
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero .subtitle {
        font-size: 1em;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: var(--spacing-xl);
    }

    .container {
        padding: var(--spacing-md);
    }
}
