/* ========================================
   DASHBOARD (index.html) PAGE STYLES
   ======================================== */

/* Import dependencies */
@import '../core/css-variables.css';
@import '../core/reset.css';
@import '../core/typography.css';
@import '../components/header.css';
@import '../components/buttons.css';

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
}

.hero h1 {
    font-family: 'Quattrocento', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.25rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-bottom: 2rem;
}

.title-container {
    display: inline;
    white-space: nowrap;
}

.title-static {
    display: inline;
}

.title-rotating {
    display: inline-block;
    position: relative;
    min-width: 300px;
    height: 1.2em;
    vertical-align: bottom;
    overflow: visible;
}

.title-word {
    position: absolute;
    left: 0;
    opacity: 0;
    animation: fadeWord 27s infinite;
}

.title-word:nth-child(1) { animation-delay: 0s; }
.title-word:nth-child(2) { animation-delay: 3s; }
.title-word:nth-child(3) { animation-delay: 6s; }
.title-word:nth-child(4) { animation-delay: 9s; }
.title-word:nth-child(5) { animation-delay: 12s; }
.title-word:nth-child(6) { animation-delay: 15s; }
.title-word:nth-child(7) { animation-delay: 18s; }
.title-word:nth-child(8) { animation-delay: 21s; }
.title-word:nth-child(9) { animation-delay: 24s; }

@keyframes fadeWord {
    0% { opacity: 0; }
    3% { opacity: 1; }
    10% { opacity: 1; }
    13% { opacity: 0; }
    100% { opacity: 0; }
}

/* Current Week Section */
.current-week {
    padding: 3rem 0;
    border-bottom: 1px solid #334155;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.week-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.week-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.week-dates {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
}

/* Journeys Section */
.journeys {
    padding: 3rem 0;
    border-bottom: 1px solid #334155;
}

/* Journey Grid & Cards - See css/components/cards.css for shared styles */
/* Page-specific overrides below */

.journey-grid {
    margin-top: 2rem;
}

/* Role Badge Clickability in Dashboard */
.journey-badge-role {
    cursor: pointer;
    transition: all 0.2s ease;
}

.journey-badge-role:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

/* Activities Section */
.activities {
    padding: 3rem 0;
}

.activity-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.activity-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.activity-item:hover {
    border-color: var(--border-secondary);
    transform: translateX(4px);
}

.activity-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-secondary);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.activity-checkbox:hover {
    border-color: #10b981;
}

.activity-checkbox.completed {
    background-color: #10b981;
    border-color: #10b981;
}

.activity-checkbox.completed::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.activity-content {
    flex: 1;
}

.activity-journey-tag {
    font-size: 0.7rem;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.activity-type {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.activity-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.875rem;
    color: #64748b;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem 0;
    color: #94a3b8;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #334155;
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* User Session Components */
.user-session-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

#current-user-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    color: #60a5fa;
    white-space: nowrap;
}

#current-user-indicator:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.user-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

#quick-user-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
    min-width: 120px;
}

#quick-user-select:hover {
    border-color: #60a5fa;
    background: #334155;
}

#quick-user-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.user-switch-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Status badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.status-paused {
    background-color: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.status-badge.status-dropped {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-badge.status-completed {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .title-rotating {
        min-width: 220px;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .journey-grid {
        grid-template-columns: 1fr;
    }

    .week-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .week-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .current-week,
    .journeys,
    .activities {
        padding: 2rem 0;
    }

    .hero {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.4;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .title-container {
        white-space: normal;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .title-static {
        display: block;
        text-align: center;
        margin-bottom: 0.25rem;
    }

    .title-rotating {
        min-width: 200px;
        width: 200px;
        display: block;
        margin: 0 auto;
        text-align: center;
        position: relative;
        height: 1.4em;
    }

    .title-word {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    .week-card,
    .journey-card,
    .activity-item {
        padding: 1rem;
    }

    .journey-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .activity-checkbox {
        width: 22px;
        height: 22px;
    }
}

/* ============================================
   JOURNEY CARD METADATA CONTAINER
   ============================================
   Added: January 8, 2026
   Replaces inline styles from journey cards
   ============================================ */

.journey-meta-container {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
    /* Note: border-top removed as requested */
}
