/* Index Page Specific Styles */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: var(--space-2xl) 0;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    margin-bottom: var(--space-2xl);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-icon {
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Dashboard Section */
.dashboard-section {
    padding: var(--space-xl) 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

/* Stats Card */
.stats-card .card-content {
    padding: var(--space-lg);
}

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

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Project and Storyboard Lists */
.project-list,
.storyboard-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.project-item,
.storyboard-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.project-item:hover,
.storyboard-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-thumbnail,
.storyboard-preview {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.project-thumbnail img,
.storyboard-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.project-info,
.storyboard-info {
    flex: 1;
    min-width: 0;
}

.project-info h3,
.storyboard-info h4 {
    margin: 0 0 var(--space-xs) 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-date,
.storyboard-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 var(--space-xs) 0;
}

.project-status,
.storyboard-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-draft {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.status-in-progress,
.status-generating {
    background: var(--warning);
    color: var(--bg-primary);
}

.status-completed {
    background: var(--success);
    color: var(--bg-primary);
}

.status-failed {
    background: var(--error);
    color: white;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-top: var(--space-xs);
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

/* Badge */
.badge {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.6;
}

.empty-state p {
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .project-item,
    .storyboard-item {
        flex-direction: column;
        text-align: center;
    }
    
    .project-thumbnail,
    .storyboard-preview {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: var(--space-xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .dashboard-grid {
        gap: var(--space-md);
    }
    
    .card-content {
        padding: var(--space-md);
    }
    
    .project-thumbnail,
    .storyboard-preview {
        width: 60px;
        height: 60px;
    }
}