/* Decision Fatigue Workbook Styles */
/* Brand Colors: Crimson Red (#DC143C), Black (#000000), White (#FFFFFF) */
/* Font: Fira Sans */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');

.dfworkbook-container {
    font-family: 'Fira Sans', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
    color: #000000;
}

/* Header Section */
.dfworkbook-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #DC143C;
}

.dfworkbook-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #DC143C;
    margin-bottom: 15px;
    line-height: 1.2;
}

.dfworkbook-header .subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #000000;
    font-style: italic;
}

/* Progress Bar */
.dfworkbook-progress {
    margin-bottom: 40px;
}

.dfworkbook-progress-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #000000;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progress-percentage {
    color: #DC143C;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #DC143C 0%, #b00e2f 100%);
    width: 0%;
    transition: width 0.4s ease;
}

/* Section Styling */
.dfworkbook-section {
    margin-bottom: 50px;
    padding: 30px;
    background: #fafafa;
    border-left: 4px solid #DC143C;
    border-radius: 4px;
}

.dfworkbook-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #DC143C;
    margin-bottom: 20px;
}

.dfworkbook-section h3 {
    font-size: 1.35rem;
    font-weight: 500;
    color: #000000;
    margin: 25px 0 15px 0;
}

.dfworkbook-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 15px;
}

/* Interactive Elements */
.workbook-question {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.workbook-question-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
    display: block;
}

.workbook-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.workbook-textarea:focus {
    outline: none;
    border-color: #DC143C;
}

.workbook-input {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.workbook-input:focus {
    outline: none;
    border-color: #DC143C;
}

/* Checklist Items */
.workbook-checklist {
    margin: 20px 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.1);
}

.checklist-item.completed {
    background: #f5f5f5;
    opacity: 0.7;
}

.checklist-checkbox {
    width: 22px;
    height: 22px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #DC143C;
    flex-shrink: 0;
}

.checklist-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
}

.checklist-item.completed .checklist-text {
    text-decoration: line-through;
}

/* Action Steps */
.action-steps {
    background: #DC143C;
    color: #ffffff;
    padding: 30px;
    border-radius: 4px;
    margin: 30px 0;
}

.action-steps h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.action-steps p {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.7;
}

.action-steps ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.action-steps li {
    padding: 12px 0 12px 30px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
}

.action-steps li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: #ffffff;
}

/* Buttons */
.workbook-button {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Fira Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #DC143C;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.workbook-button:hover {
    background: #b00e2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.workbook-button:active {
    transform: translateY(0);
}

.workbook-button-secondary {
    background: #000000;
    color: #ffffff;
}

.workbook-button-secondary:hover {
    background: #333333;
}

/* Save Indicator */
.save-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background: #DC143C;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Quote Box */
.quote-box {
    margin: 30px 0;
    padding: 25px 30px;
    background: #ffffff;
    border-left: 5px solid #DC143C;
    font-size: 1.15rem;
    font-style: italic;
    color: #333333;
    line-height: 1.7;
}

/* System Builder Grid */
.system-builder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.system-card {
    padding: 25px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.system-card:hover {
    border-color: #DC143C;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.1);
}

.system-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #DC143C;
    margin-bottom: 15px;
}

.system-card p {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
}

/* Completion Section */
.completion-section {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #DC143C 0%, #b00e2f 100%);
    color: #ffffff;
    border-radius: 4px;
    margin: 40px 0;
}

.completion-section h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.completion-section p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dfworkbook-container {
        padding: 30px 15px;
    }
    
    .dfworkbook-header h1 {
        font-size: 1.9rem;
    }
    
    .dfworkbook-header .subtitle {
        font-size: 1.1rem;
    }
    
    .dfworkbook-section {
        padding: 20px;
    }
    
    .dfworkbook-section h2 {
        font-size: 1.5rem;
    }
    
    .system-builder-grid {
        grid-template-columns: 1fr;
    }
    
    .save-indicator {
        bottom: 20px;
        right: 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    /* Hide everything except the workbook */
    body > *:not(.dfworkbook-container) {
        display: none !important;
    }
    
    /* Hide WordPress admin bar and other elements */
    #wpadminbar,
    .site-header,
    .site-footer,
    header,
    footer,
    nav,
    aside,
    .sidebar {
        display: none !important;
    }
    
    .dfworkbook-container {
        max-width: 100%;
        margin: 0;
        padding: 20px;
    }
    
    /* Hide buttons and indicators */
    .workbook-button,
    .save-indicator,
    .download-pdf-btn,
    .save-progress-btn,
    .reset-workbook-btn {
        display: none !important;
    }
    
    /* Prevent page breaks inside sections */
    .dfworkbook-section,
    .workbook-question,
    .checklist-item {
        page-break-inside: avoid;
    }
    
    /* Ensure proper spacing for print */
    .dfworkbook-section {
        margin-bottom: 30px;
    }
    
    /* Print-friendly colors */
    .action-steps {
        background: #DC143C !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .completion-section {
        background: #DC143C !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
