/* ============================================
   SiraAI — Page-Specific Styles
   Landing, Auth, Journal, Dashboard, Settings
   ============================================ */

/* === LANDING PAGE === */
.landing-hero {
    position: relative;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafe 0%, #f0eeff 30%, #e6faf8 70%, #fafafe 100%);
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.35rem 0.85rem;
    background: white;
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-600);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-xs);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-500);
    animation: pulse-soft 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--gray-900);
    margin-bottom: var(--space-5);
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: var(--space-8);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4/3;
}

.hero-float-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--space-5);
}

.hero-float-card.card-1 {
    top: 0;
    left: 0;
    right: 40px;
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}

.hero-float-card.card-2 {
    top: 40%;
    right: 0;
    width: 220px;
    z-index: 2;
    animation: float 5s ease-in-out infinite 1s;
}

.hero-float-card.card-3 {
    bottom: 0;
    left: 20px;
    width: 200px;
    z-index: 1;
    animation: float 5s ease-in-out infinite 2s;
}

.float-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
}

.float-card-emotion {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.float-card-bar {
    height: 6px;
    background: var(--gray-100);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-1);
}

.float-card-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-400), var(--accent-400));
}

/* Features Section */
.features-section {
    padding: var(--space-24) 0;
    background: white;
}

.features-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-16);
}

.section-header .subtitle {
    margin-top: var(--space-3);
}

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

.feature-card {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.feature-icon.purple { background: var(--primary-50); color: var(--primary-500); }
.feature-icon.teal { background: var(--accent-50); color: var(--accent-600); }
.feature-icon.amber { background: #FFF8E1; color: #F59E0B; }
.feature-icon.rose { background: #FFF1F2; color: #F43F5E; }
.feature-icon.blue { background: #EFF6FF; color: #3B82F6; }
.feature-icon.green { background: #F0FDF4; color: #22C55E; }

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-400));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    position: relative;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.btn-white {
    background: white;
    color: var(--primary-600);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-lg);
    border: none;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--primary-700);
}

/* === AUTH PAGES === */
.auth-page {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafafe, #f0eeff 50%, #e6faf8);
    padding: var(--space-8) var(--space-4);
}

.auth-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-10);
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.5s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-2);
}

.auth-header p {
    color: var(--gray-500);
    font-size: 0.92rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-6) 0;
    color: var(--gray-400);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: 0.88rem;
    color: var(--gray-500);
}

.auth-footer a {
    font-weight: 600;
}

/* === JOURNAL LIST === */
.journal-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.journal-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.journal-search {
    position: relative;
    max-width: 300px;
}

.journal-search input {
    padding-left: 36px;
}

.journal-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.pagination-btn {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-300);
    color: var(--primary-500);
}

.pagination-btn.active {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* === JOURNAL VIEW === */
.journal-view {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.journal-view-header {
    margin-bottom: var(--space-6);
}

.journal-view-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.journal-view-date {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.journal-view-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.journal-view-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray-700);
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    white-space: pre-wrap;
}

.journal-view-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

/* === DASHBOARD === */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.dashboard-insights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-10);
        text-align: center;
    }

    .hero-content { max-width: 100%; }
    .hero-description { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }

    .hero-visual { display: none; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-description { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }

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

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

    .auth-card { padding: var(--space-8) var(--space-6); }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-charts {
        grid-template-columns: 1fr;
    }

    .dashboard-insights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .auth-card { padding: var(--space-6) var(--space-4); }
}
