/* ============================================
   Views CSS - Calendar, Ideas, Pipeline, Stats Specific
   ============================================ */

/* ============================================
   Calendar View
   ============================================ */
.calendar-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    gap: var(--space-sm);
}

.calendar-header h2 {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-templates {
    margin-left: auto;
}

.calendar-view-container {
    display: none;
}

.calendar-view-container.active {
    display: block;
    animation: fadeIn var(--transition-slow);
}

/* Calendar Grid */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: var(--space-sm);
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    min-height: 45px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Light theme calendar days */
[data-theme="light"] .calendar-day {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .calendar-day:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    border: 2px solid var(--accent);
}

.day-number {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.day-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 2px;
}

.day-post-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    /* Pillar color set via inline style from JS */
}

/* Day Expanded View (on larger screens) */
@media (min-width: 768px) {
    .calendar-day {
        min-height: 80px;
    }
    
    .day-posts {
        flex-direction: column;
    }
    
    .day-post-item {
        font-size: 0.65rem;
        padding: 3px 6px;
        border-radius: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: white;
        font-weight: 500;
        margin-bottom: 2px;
        text-shadow: 0 1px 1px rgba(0,0,0,0.2);
        /* Background color set via inline style from JS */
    }
    
    .calendar-day {
        min-height: 100px;
    }
}

/* ============================================
   Calendar List View
   ============================================ */
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.list-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.list-item:hover {
    border-color: var(--accent);
}

.list-item-main {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
}

/* Two-stage checkboxes - Clean & Minimal */
.list-item-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
    margin-right: var(--space-sm);
    padding-bottom: 12px;
}

.stage-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
}

.stage-checkbox input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.stage-checkbox .checkbox-visual {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.stage-checkbox .checkbox-visual svg {
    width: 10px;
    height: 10px;
    opacity: 0;
    stroke-width: 2.5;
    transition: all var(--transition-fast);
    transform: scale(0.8);
}

/* Hover states */
.stage-checkbox:hover .checkbox-visual {
    border-color: var(--text-muted);
}

/* Prepared checkbox - Amber (subtle) */
.stage-checkbox.prepared input:checked + .checkbox-visual {
    background: #f59e0b;
    border-color: #f59e0b;
}

.stage-checkbox.prepared input:checked + .checkbox-visual svg {
    opacity: 1;
    stroke: #000;
    transform: scale(1);
}

/* Executed checkbox - Green (subtle) */
.stage-checkbox.executed input:checked + .checkbox-visual {
    background: #10b981;
    border-color: #10b981;
}

.stage-checkbox.executed input:checked + .checkbox-visual svg {
    opacity: 1;
    stroke: #fff;
    transform: scale(1);
}

/* Checkbox labels - smaller and subtler */
.stage-checkbox .checkbox-label {
    position: absolute;
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    opacity: 0.7;
}

/* Content info */
.list-item-content {
    flex: 1;
    min-width: 0;
    cursor: pointer;
    margin-right: var(--space-sm);
}

.list-item-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.list-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-platform {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    flex-shrink: 0;
    color: white;
}

.list-item-platform.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.list-item-platform.tiktok { background: #000; }
.list-item-platform.x { background: #000; }
.list-item-platform.youtube { background: #FF0000; }
.list-item-platform.linkedin { background: #0A66C2; }
.list-item-platform.facebook { background: #1877F2; }
.list-item-platform.threads { background: #000; }
.list-item-platform.pinterest { background: #E60023; }

.list-item-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.list-item-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-item-date svg {
    width: 14px;
    height: 14px;
}

.list-item-type {
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-item-type select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 2px 6px;
    cursor: pointer;
}

.list-item-type select:focus {
    outline: none;
    border-color: var(--accent);
}

.list-item-type-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* List Item Actions */
.list-item-actions {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.list-item-edit,
.list-item-delete {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.list-item-edit:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
}

.list-item-delete:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--text-primary);
}

.list-item-edit svg,
.list-item-delete svg {
    width: 16px;
    height: 16px;
}

/* Expand toggle */
.list-item-expand {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.list-item-expand:hover {
    background: var(--accent);
    color: var(--text-primary);
}

.list-item-expand svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-slow);
}

.list-item.expanded .list-item-expand svg {
    transform: rotate(180deg);
}

/* Subtasks panel */
.list-item-subtasks {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.list-item.expanded .list-item-subtasks {
    max-height: 500px;
}

.subtasks-container {
    padding: var(--space-md);
    padding-left: calc(var(--space-md) + 64px);
}

.subtask-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

.subtask-item:last-child {
    border-bottom: none;
}

/* Subtask checkboxes - Clean & Minimal */
.subtask-checkbox {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.subtask-checkbox input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.subtask-checkbox .checkbox-visual {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.subtask-checkbox .checkbox-visual svg {
    width: 9px;
    height: 9px;
    opacity: 0;
    stroke-width: 2.5;
    transition: all var(--transition-fast);
    transform: scale(0.8);
}

.subtask-checkbox:hover .checkbox-visual {
    border-color: var(--text-muted);
}

.subtask-checkbox input:checked + .checkbox-visual {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.subtask-checkbox input:checked + .checkbox-visual svg {
    opacity: 1;
    stroke: #fff;
    transform: scale(1);
}

.subtask-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.subtask-item.completed .subtask-label {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Progress indicator */
.subtasks-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* List empty state */
.list-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

.list-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

/* Date group headers */
.list-date-group {
    margin-bottom: var(--space-md);
}

.list-date-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.list-date-header.today {
    color: var(--accent);
}

.list-date-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--accent);
    border-radius: 10px;
    color: var(--text-primary);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .list-item-main {
        flex-wrap: wrap;
    }
    
    .list-item-checkboxes {
        flex-direction: row;
        padding-bottom: 0;
        margin-right: var(--space-xs);
    }
    
    .stage-checkbox .checkbox-label {
        display: none;
    }
    
    .list-item-content {
        flex-basis: calc(100% - 180px);
    }
    
    .list-item-actions {
        gap: 2px;
    }
    
    .list-item-edit,
    .list-item-delete,
    .list-item-expand {
        width: 28px;
        height: 28px;
    }
    
    .list-item-edit svg,
    .list-item-delete svg {
        width: 14px;
        height: 14px;
    }
    
    .subtasks-container {
        padding-left: var(--space-md);
    }
}

/* ============================================
   Post Detail View (Full Page)
   ============================================ */
.detail-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Detail Header */
.detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    padding-top: calc(var(--space-md) + var(--safe-top));
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.detail-back,
.detail-close {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.detail-back:hover,
.detail-close:hover {
    background: var(--accent);
    color: var(--text-primary);
}

.detail-back svg,
.detail-close svg {
    width: 20px;
    height: 20px;
}

.detail-header-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Detail Content */
.detail-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    padding-bottom: calc(var(--space-xl) + 80px);
}

.detail-info-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border);
}

/* Title field - prominent for new posts */
#detail-title {
    font-size: 1.1rem;
    font-weight: 500;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

#detail-title:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

#detail-title::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 400px) {
    .detail-row {
        grid-template-columns: 1fr;
    }
}

/* Detail Sections */
.detail-sections-wrapper {
    margin-bottom: var(--space-lg);
}

.detail-sections-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.detail-section {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.detail-section:hover {
    border-color: var(--accent);
}

.detail-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    cursor: pointer;
    user-select: none;
}

/* Detail section checkboxes - Clean & Minimal */
.detail-section-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.detail-section-checkbox input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.detail-section-checkbox .checkbox-visual {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.detail-section-checkbox .checkbox-visual svg {
    width: 10px;
    height: 10px;
    opacity: 0;
    stroke-width: 2.5;
    transition: all var(--transition-fast);
    transform: scale(0.8);
}

.detail-section-checkbox:hover .checkbox-visual {
    border-color: var(--text-muted);
}

.detail-section-checkbox input:checked + .checkbox-visual {
    background: var(--success);
    border-color: var(--success);
}

.detail-section-checkbox input:checked + .checkbox-visual svg {
    opacity: 1;
    stroke: #fff;
    transform: scale(1);
}

.detail-section-title {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.detail-section-icon {
    font-size: 1.1rem;
}

.detail-section-toggle {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.detail-section-toggle:hover {
    background: var(--accent);
    color: var(--text-primary);
}

.detail-section-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-slow);
}

.detail-section.expanded .detail-section-toggle svg {
    transform: rotate(180deg);
}

.detail-section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.detail-section.expanded .detail-section-body {
    max-height: 400px;
}

.detail-section-body textarea {
    width: 100%;
    min-height: 120px;
    padding: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
}

.detail-section-body textarea::placeholder {
    color: var(--text-muted);
}

.detail-section-body textarea:focus {
    outline: none;
}

/* Detail Footer */
.detail-footer {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + var(--safe-bottom));
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.detail-delete,
.detail-save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.detail-delete {
    background: var(--bg-card);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.detail-delete:hover {
    background: var(--danger);
    color: var(--text-primary);
}

.detail-save {
    flex: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--text-primary);
}

.detail-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.detail-delete svg,
.detail-save svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Ideas Bank View
   ============================================ */
.ideas-header {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.ideas-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.idea-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border-left: 4px solid var(--accent);
}

.idea-card:hover {
    transform: translateX(4px);
    background: var(--bg-secondary);
}

.idea-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.idea-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-xs);
}

.idea-title {
    font-weight: 600;
    font-size: 1rem;
}

.idea-platform {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.idea-platform.instagram { background: var(--instagram); }
.idea-platform.tiktok { background: var(--tiktok); color: #000; }
.idea-platform.x { background: var(--x); color: #000; }
.idea-platform.youtube { background: var(--youtube); }
.idea-platform.linkedin { background: var(--linkedin); }
.idea-platform.facebook { background: var(--facebook); }
.idea-platform.threads { background: var(--threads); color: #fff; }
.idea-platform.pinterest { background: var(--pinterest); }

.idea-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-tags {
    display: flex;
    gap: var(--space-xs);
}

.idea-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-muted);
}

.idea-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.idea-action-btn {
    flex: 1;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.idea-action-btn:hover {
    background: var(--accent);
    color: var(--text-primary);
}

/* ============================================
   Pipeline View - Production Tracker
   ============================================ */
#view-pipeline {
    padding: var(--space-md);
}

.pipeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.pipeline-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.pipeline-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Stats row */
.pipeline-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.pipeline-stat {
    text-align: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    min-width: 80px;
}

.pipeline-stat .stat-count {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.pipeline-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stage flow */
.pipeline-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .pipeline-flow {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pipeline-flow {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pipeline-stage {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stage-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.stage-icon {
    font-size: 1.25rem;
}

.stage-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.stage-count {
    background: var(--bg-secondary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stage-cards {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-height: 100px;
}

.stage-empty {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* Pipeline card */
.pipeline-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border-left: 4px solid var(--accent);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.pipeline-card:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.pipeline-card .card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.pipeline-card .card-meta {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.pipeline-card .card-date.overdue {
    color: var(--danger);
    font-weight: 600;
}

.pipeline-card .card-platform {
    text-transform: uppercase;
    font-weight: 600;
}

.pipeline-card .card-actions {
    display: flex;
    gap: var(--space-xs);
    justify-content: flex-end;
}

.card-action {
    background: var(--bg-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.card-action:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.card-action-delete:hover {
    background: var(--danger);
}

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

.pipeline-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.pipeline-empty h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.pipeline-empty p {
    margin-bottom: var(--space-lg);
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Stats View
   ============================================ */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.section-title {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.stats-posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stats-post-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.stats-post-card:hover {
    background: var(--bg-secondary);
}

.stats-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.stats-post-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.stats-post-platform {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.stats-post-platform.instagram { background: var(--instagram); }
.stats-post-platform.tiktok { background: var(--tiktok); color: #000; }
.stats-post-platform.x { background: var(--x); color: #000; }
.stats-post-platform.youtube { background: var(--youtube); }
.stats-post-platform.linkedin { background: var(--linkedin); }
.stats-post-platform.facebook { background: var(--facebook); }
.stats-post-platform.threads { background: var(--threads); color: #fff; }
.stats-post-platform.pinterest { background: var(--pinterest); }

.stats-post-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xs);
}

.stat-metric {
    text-align: center;
    padding: var(--space-xs);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.stat-metric-value {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.stat-metric-label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.stats-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

/* ============================================
   Streak Section
   ============================================ */
.streak-section {
    margin-bottom: var(--space-lg);
}

.streak-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

@media (max-width: 500px) {
    .streak-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.streak-stat {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
}

.streak-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.streak-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.streak-progress {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.streak-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.streak-progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.streak-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 4px;
    transition: width var(--transition-slow);
}

/* Streak Calendar (GitHub-style contribution grid) */
.streak-calendar-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.streak-calendar-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.streak-calendar {
    display: flex;
    gap: 3px;
    justify-content: center;
    flex-wrap: wrap;
}

.streak-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.streak-square {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--bg-tertiary);
}

.streak-square.level-0 { background: var(--bg-tertiary); }
.streak-square.level-1 { background: rgba(233, 69, 96, 0.25); }
.streak-square.level-2 { background: rgba(233, 69, 96, 0.5); }
.streak-square.level-3 { background: rgba(233, 69, 96, 0.75); }
.streak-square.level-4 { background: var(--accent); }

.streak-calendar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.streak-legend-squares {
    display: flex;
    gap: 2px;
}

/* ============================================
   Pillar Chart Section
   ============================================ */
.pillar-chart-section {
    margin-bottom: var(--space-lg);
}

.pillar-chart-container {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

@media (max-width: 500px) {
    .pillar-chart-container {
        flex-direction: column;
    }
}

.pillar-pie-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.pillar-pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.pillar-pie-center small {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pillar-legend {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.pillar-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pillar-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.pillar-legend-label {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pillar-legend-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Week View
   ============================================ */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-xs);
}

@media (max-width: 600px) {
    .week-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.week-column {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    min-height: 150px;
    transition: all var(--transition-normal);
}

.week-column.today {
    border: 2px solid var(--accent);
}

.week-column-header {
    text-align: center;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-sm);
}

.week-day-name {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.week-day-num {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.week-day-num.today-num {
    color: var(--accent);
}

.week-column-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.week-add-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.week-add-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.week-post-card {
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    /* Background color set via inline style from JS */
}

.week-post-card:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.week-post-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.week-post-meta {
    display: flex;
    gap: var(--space-xs);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.85);
}

.week-post-platform {
    font-size: 0.6rem;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(255,255,255,0.25);
    color: white;
}

.week-post-status {
    font-size: 0.8rem;
    margin-top: var(--space-xs);
}

/* ============================================
   Duplicate Button
   ============================================ */
.list-item-duplicate {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.list-item-duplicate:hover {
    background: var(--info);
    border-color: var(--info);
    color: var(--text-primary);
}

.list-item-duplicate svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Detail Status Checkboxes (Ready/Done)
   ============================================ */
.detail-status-row {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-md);
}

.detail-status-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.detail-status-checkbox input {
    display: none;
}

.status-checkbox-visual {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.status-checkbox-visual svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.detail-status-checkbox input:checked + .status-checkbox-visual.prepared {
    background: #f59e0b;
    border-color: #f59e0b;
}

.detail-status-checkbox input:checked + .status-checkbox-visual.executed {
    background: #10b981;
    border-color: #10b981;
}

.detail-status-checkbox input:checked + .status-checkbox-visual svg {
    opacity: 1;
    stroke: #fff;
}

.status-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   Vision View - Creator Vision Framework
   ============================================ */
.vision-container {
    padding: var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: calc(var(--space-xl) + 80px);
}

.vision-title-wrapper {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.vision-title {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bg-card);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    letter-spacing: 2px;
    border: 1px solid var(--border);
}

.vision-columns {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.vision-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.vision-header {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
    color: white;
    letter-spacing: 1px;
}

.what-header { 
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.who-header { 
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.why-header { 
    background: linear-gradient(135deg, #e94560, #dc2626);
}

.vision-card {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--border);
    border: 1px solid var(--border);
}

.vision-what .vision-card { 
    border-left: 4px solid #3b82f6; 
}

.vision-who .vision-card { 
    border-left: 4px solid #8b5cf6; 
}

.vision-why .vision-card { 
    border-left: 4px solid #e94560; 
}

.vision-card h3 {
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.vision-card h4 {
    margin-bottom: var(--space-xs);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.vision-card textarea {
    width: 100%;
    min-height: 80px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
}

.vision-card textarea::placeholder {
    color: var(--text-muted);
}

.vision-card textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Pillar Cards */
.vision-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.pillar-card {
    background: var(--bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    border-top: 3px solid #3b82f6;
}

.pillar-card h4 {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.pillar-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--space-sm);
}

.pillar-card textarea {
    width: 100%;
    min-height: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.4;
}

.pillar-card textarea::placeholder {
    color: var(--text-muted);
}

.pillar-card textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.pillar-note {
    font-size: 0.65rem;
    font-style: italic;
    color: var(--text-muted);
    display: block;
    margin-top: var(--space-xs);
}

/* WHO Column Sub-sections */
.vision-sub-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--space-sm);
}

.demo-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
}

.demo-fields input {
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
}

.demo-fields input::placeholder {
    color: var(--text-muted);
}

.demo-fields input:focus {
    outline: none;
    border-color: #8b5cf6;
}

/* WHO specific textareas */
.vision-who .vision-card textarea:focus {
    border-color: #8b5cf6;
}

/* WHY Column Journey - Story Arc */
.vision-journey {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--border);
}

.journey-header {
    text-align: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px dashed var(--border);
}

.journey-label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.journey-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.journey-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
}

.journey-card {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
}

.journey-card[data-phase="beginning"] {
    border-left: 4px solid #f59e0b;
}

.journey-card[data-phase="middle"] {
    border-left: 4px solid #e94560;
}

.journey-card[data-phase="end"] {
    border-left: 4px solid #10b981;
}

.journey-phase-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
}

.journey-card[data-phase="beginning"] .journey-phase-badge {
    background: #f59e0b;
}

.journey-card[data-phase="middle"] .journey-phase-badge {
    background: #e94560;
}

.journey-card[data-phase="end"] .journey-phase-badge {
    background: #10b981;
}

.journey-card h4 {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    margin-top: 4px;
}

.journey-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: var(--space-sm);
}

.journey-card textarea {
    width: 100%;
    min-height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    color: var(--text-primary);
    resize: vertical;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.4;
}

.journey-card textarea::placeholder {
    color: var(--text-muted);
}

.journey-card textarea:focus {
    outline: none;
    border-color: #e94560;
}

/* Journey Connector */
.journey-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xs) 0;
    position: relative;
}

.connector-line {
    width: 2px;
    height: 16px;
    background: linear-gradient(to bottom, var(--border), var(--accent));
}

.connector-arrow {
    font-size: 1.2rem;
    color: var(--accent);
    line-height: 1;
}

/* Desktop: Horizontal layout */
@media (min-width: 600px) {
    .journey-timeline {
        flex-direction: row;
        align-items: stretch;
    }
    
    .journey-card {
        flex: 1;
        border-left: 1px solid var(--border);
        border-top: 4px solid var(--border);
    }
    
    .journey-card[data-phase="beginning"] {
        border-top-color: #f59e0b;
        border-left: 1px solid var(--border);
    }
    
    .journey-card[data-phase="middle"] {
        border-top-color: #e94560;
    }
    
    .journey-card[data-phase="end"] {
        border-top-color: #10b981;
    }
    
    .journey-phase-badge {
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .journey-connector {
        flex-direction: row;
        padding: 0 var(--space-xs);
        align-items: center;
    }
    
    .connector-line {
        width: 20px;
        height: 2px;
        background: linear-gradient(to right, var(--border), var(--accent));
    }
    
    .connector-arrow {
        transform: rotate(0deg);
    }
}

/* Mobile optimizations for Vision */
@media (max-width: 500px) {
    .vision-container {
        padding: var(--space-sm);
    }
    
    .vision-title {
        font-size: 1.2rem;
        padding: var(--space-sm) var(--space-md);
    }
    
    .vision-pillars {
        grid-template-columns: 1fr;
    }
    
    .demo-fields {
        grid-template-columns: 1fr;
    }
    
    .journey-arrow {
        transform: rotate(90deg);
        padding: 0;
    }
}

/* ============================================
   Vision - STYLE Column
   ============================================ */
.vision-style .vision-header {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.vision-style .vision-card:focus-within {
    border-color: #ec4899;
}

/* Color Palette */
.color-palette-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.color-swatch-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-swatch-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-input-row {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.color-input-row input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 2px;
    background: var(--bg-secondary);
}

.color-input-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input-row input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.color-input-row input[type="text"] {
    flex: 1;
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.color-input-row input[type="text"]:focus {
    outline: none;
    border-color: #ec4899;
}

/* Palette Preview */
.palette-preview {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.palette-preview-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.preview-heading {
    font-size: 1.1rem;
    font-weight: 700;
}

.preview-body {
    font-size: 0.9rem;
}

.preview-accent {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    margin-top: var(--space-xs);
}

.palette-swatches {
    display: flex;
    gap: 4px;
    margin-top: var(--space-sm);
}

.mini-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Typography Fields */
.typography-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.typography-fields .form-group {
    margin: 0;
}

.typography-fields label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.typography-fields input {
    width: 100%;
    padding: var(--space-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.typography-fields input:focus {
    outline: none;
    border-color: #ec4899;
}

/* Vibe Keywords */
.vibe-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.vibe-keyword {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.vibe-keyword:hover {
    border-color: #ec4899;
    color: #ec4899;
}

.vibe-keyword.selected {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
}

/* Mobile adjustments */
@media (max-width: 500px) {
    .color-palette-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .color-input-row input[type="color"] {
        width: 36px;
        height: 36px;
    }
    
    .palette-preview {
        padding: var(--space-sm);
    }
}

/* Design Notes - Larger textarea */
#vision-design-notes {
    min-height: 280px;
    resize: vertical;
}

/* Font Suggestions */
.font-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--space-xs);
}

.font-chip {
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.font-chip:hover {
    border-color: #ec4899;
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

.font-chip.selected {
    background: #ec4899;
    color: white;
    border-color: #ec4899;
}

.font-categories {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}

.font-category-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.font-category-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    color: var(--text-muted);
}

/* Pillar Legend */
.pillar-legend {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    margin-bottom: 8px;
}

.pillar-legend .legend-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.pillar-legend .legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
    display: inline-block;
}

/* ============================================
   Vision - Profile Bio Section
   ============================================ */
.vision-profile-section {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.vision-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.profile-icon {
    font-size: 1.5rem;
}

.profile-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

#vision-bio {
    width: 100%;
    min-height: 100px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
}

#vision-bio::placeholder {
    color: var(--text-muted);
}

#vision-bio:focus {
    outline: none;
    border-color: var(--accent);
}

.bio-hints {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.bio-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* ============================================
   Vision - Expanded Story Arc
   ============================================ */
.vision-journey-expanded {
    padding: var(--space-lg);
}

.journey-timeline-vertical {
    display: flex;
    flex-direction: column !important;
    gap: 0;
}

.journey-card-large {
    border-left: 4px solid var(--border) !important;
    border-top: 1px solid var(--border) !important;
    text-align: left !important;
}

.journey-card-large[data-phase="beginning"] {
    border-left-color: #f59e0b !important;
}

.journey-card-large[data-phase="middle"] {
    border-left-color: #e94560 !important;
}

.journey-card-large[data-phase="end"] {
    border-left-color: #10b981 !important;
}

.journey-card-large textarea {
    min-height: 120px !important;
    font-size: 0.9rem;
}

.journey-card-large .journey-phase-badge {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: inline-block;
    margin-bottom: var(--space-xs);
}

.journey-connector-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) 0;
}

.connector-line-v {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--border), var(--accent));
}

.connector-arrow-v {
    font-size: 1.2rem;
    color: var(--accent);
    line-height: 1;
}

/* Pipeline Drag and Drop */
.pipeline-card[draggable="true"] {
    cursor: grab;
}

.pipeline-card[draggable="true"]:active {
    cursor: grabbing;
}

.pipeline-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.pipeline-stage.drag-over {
    background: rgba(233, 69, 96, 0.1);
    border: 2px dashed var(--accent);
}

.pipeline-stage.drag-over .stage-cards {
    min-height: 150px;
}

/* Palette Preview Fonts */
.palette-fonts {
    display: flex;
    gap: var(--space-sm);
    margin: var(--space-sm) 0;
}

.palette-fonts .font-label {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    color: inherit;
    opacity: 0.8;
}

.palette-preview-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}
