/* Dashboard */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.dashboard-welcome h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.dashboard-welcome p {
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

/* Products List */
.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.products-filters {
    display: flex;
    gap: var(--space-sm);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--duration-fast) var(--ease-out);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-card-image {
    aspect-ratio: 16/9;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-image svg {
    width: 48px;
    height: 48px;
    color: var(--color-text-light);
}

.product-card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.product-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.product-card-progress {
    margin-top: auto;
}

.product-card-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Workflow */
.workflow-container {
    display: flex;
    gap: var(--space-xl);
}

.workflow-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.workflow-main {
    flex: 1;
    min-width: 0;
}

.workflow-phases {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.workflow-phase {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.workflow-phase:hover {
    border-color: var(--color-primary);
}

.workflow-phase.active {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
}

.workflow-phase.completed {
    border-color: var(--color-success);
}

.workflow-phase-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
}

.workflow-phase.active .workflow-phase-number {
    background: var(--color-primary);
    color: white;
}

.workflow-phase.completed .workflow-phase-number {
    background: var(--color-success);
    color: white;
}

.workflow-phase-info {
    flex: 1;
}

.workflow-phase-title {
    font-weight: 500;
    margin-bottom: var(--space-2xs);
}

.workflow-phase-status {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Phase Content */
.phase-content {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.phase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.phase-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.phase-description {
    color: var(--color-text-muted);
}

.phase-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Niche Cards */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.niche-card {
    background: var(--color-bg-alt);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.niche-card:hover {
    border-color: var(--color-primary);
}

.niche-card.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
}

.niche-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.niche-card-title {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.niche-card-score {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-success);
}

.niche-card-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.niche-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.niche-tag {
    padding: var(--space-2xs) var(--space-sm);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Content Editor */
.content-editor {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

.chapter-item-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.chapter-item-info {
    flex: 1;
}

.chapter-item-title {
    font-weight: 500;
}

.chapter-item-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Visual Gallery */
.visual-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.visual-item {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-bg-alt);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.visual-item:hover {
    border-color: var(--color-primary);
}

.visual-item.selected {
    border-color: var(--color-success);
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, oklch(0% 0 0 / 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.visual-item:hover .visual-item-overlay {
    opacity: 1;
}

.visual-item-actions {
    display: flex;
    gap: var(--space-xs);
}

/* Billing */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.plan-card {
    background: var(--color-bg-elevated);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.plan-card.popular {
    border-color: var(--color-primary);
    position: relative;
}

.plan-card.popular::before {
    content: 'Populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-2xs) var(--space-md);
    background: var(--color-primary);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.plan-card-name {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.plan-card-price {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.plan-card-price span {
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-text-muted);
}

.plan-card-features {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.plan-card-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
}

.plan-card-feature svg {
    width: 16px;
    height: 16px;
    color: var(--color-success);
}

/* Settings */
.settings-section {
    margin-bottom: var(--space-2xl);
}

.settings-section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.settings-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label {
    font-weight: 500;
    margin-bottom: var(--space-2xs);
}

.settings-description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Responsive Workflow */
@media (max-width: 1024px) {
    .workflow-container {
        flex-direction: column;
    }
    
    .workflow-sidebar {
        width: 100%;
    }
    
    .workflow-phases {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: var(--space-sm);
    }
    
    .workflow-phase {
        min-width: 200px;
    }
}
