/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Pretty Pink Palette */
    --primary-pink: #ff6b9d;
    --primary-pink-dark: #ff4d88;
    --secondary-pink: #ffc2d1;
    --light-pink: #ffe5ec;
    --pale-pink: #fff5f8;
    --hot-pink: #ff1493;
    --rose-gold: #f4c2c2;
    --peach: #ffb3ba;
    --lavender: #e0bbe4;
    --mint: #d4f1f4;
    
    /* Background Colors */
    --bg-main: #fff5f8;
    --bg-card: #ffffff;
    --bg-hover: #fff0f5;
    --bg-input: #fef6f9;
    
    /* Text Colors */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-white: #ffffff;
    
    /* Border & Accent Colors */
    --border-color: #ffc2d1;
    --border-light: #ffe5ec;
    --success-color: #10b981;
    --success-bg: #f0fdf4;
    --success-border: #86efac;
    --danger-color: #ef4444;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(255, 107, 157, 0.1), 0 1px 2px 0 rgba(255, 107, 157, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(255, 107, 157, 0.1), 0 2px 4px -1px rgba(255, 107, 157, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(255, 107, 157, 0.15), 0 4px 6px -2px rgba(255, 107, 157, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(255, 107, 157, 0.15), 0 10px 10px -5px rgba(255, 107, 157, 0.04);
    
    /* Gradients */
    --gradient-pink: linear-gradient(135deg, #ff6b9d 0%, #ff8fb3 50%, #ffa6c1 100%);
    --gradient-peach: linear-gradient(135deg, #ffb3ba 0%, #ffc2d1 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 24px;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background: var(--gradient-pink);
    border-radius: 20px;
    padding: 48px 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.header-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-bottom: 0;
}

.formula {
    margin-top: 24px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.formula-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
}

/* Validation Status */
.validation-status {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.validation-status.valid {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: var(--success-border);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), var(--shadow-lg);
}

.validation-status.invalid {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.status-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.status-icon {
    font-size: 2.5rem;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-peach);
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    color: var(--primary-pink);
}

.validation-status.valid .status-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.validation-status.invalid .status-icon {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
}

.status-text h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.counter-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.counter {
    background: var(--gradient-peach);
    padding: 20px 32px;
    border-radius: 12px;
    text-align: center;
    min-width: 140px;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.counter-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 4px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.validation-status.valid .counter-value {
    color: var(--success-color);
}

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

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    gap: 16px;
}

.card-header h2 {
    font-size: 1.375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.card-header h2 i {
    color: var(--primary-pink);
    font-size: 1.25rem;
}

.requirement-badge {
    background: var(--gradient-pink);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.bloom-reminder {
    background: var(--light-pink);
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-pink);
    margin-top: 12px;
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Checklist Items */
.checklist-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    background: var(--bg-input);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
}

.checklist-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

.checklist-checkbox {
    display: none;
}

.checklist-checkbox:checked ~ .checklist-label {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08) 0%, rgba(255, 194, 209, 0.08) 100%);
    border-left: 4px solid var(--primary-pink);
}

.checklist-label {
    display: block;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.checklist-label::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 20px;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    transition: all 0.2s ease;
}

.checklist-checkbox:checked ~ .checklist-label::before {
    background: var(--gradient-pink);
    border-color: var(--primary-pink);
}

.checklist-checkbox:checked ~ .checklist-label::after {
    content: '✓';
    position: absolute;
    left: 18px;
    top: 20px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    margin-left: 38px;
}

.item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-peach);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--primary-pink);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.item-icon.bullish {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.item-icon.bearish {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
}

.item-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 6px;
}

.badge-bullish {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-bearish {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.item-description {
    margin-left: 38px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.item-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.item-description em {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.875rem;
}

/* Risk Management Section */
.risk-management-section {
    grid-column: 1 / -1;
}

.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.risk-item {
    background: var(--bg-input);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid var(--border-light);
    transition: all 0.2s ease;
}

.risk-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.risk-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-pink);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: white;
    box-shadow: var(--shadow-sm);
}

.risk-item h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.risk-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.risk-item p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.formula-small {
    background: var(--light-pink);
    padding: 10px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    margin-top: 10px;
    border-left: 3px solid var(--primary-pink);
    font-weight: 500;
    color: var(--text-primary);
}

.note {
    color: var(--primary-pink) !important;
    font-style: italic;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Final Validation Checklist Section */
.validation-checklist-section {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--pale-pink) 100%);
    border: 2px solid var(--border-color);
}

.final-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.check-item {
    background: white;
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-pink);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.check-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    text-transform: none;
    letter-spacing: 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-pink);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-secondary {
    background: white;
    color: var(--primary-pink);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--light-pink);
    border-color: var(--primary-pink);
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.footer p {
    margin: 4px 0;
}

.footer-tagline {
    font-weight: 600;
    color: var(--primary-pink);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .header {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .header-content h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .formula-text {
        font-size: 1rem;
    }

    .validation-status {
        padding: 24px;
    }

    .status-content {
        flex-direction: column;
        text-align: center;
    }

    .status-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .status-text h3 {
        font-size: 1.25rem;
    }

    .counter-group {
        flex-direction: column;
        width: 100%;
    }

    .counter {
        width: 100%;
    }

    .card {
        padding: 24px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .final-checks {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.5rem;
    }

    .card-header h2 {
        font-size: 1.125rem;
    }

    .item-title {
        font-size: 1rem;
    }

    .counter-value {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .header,
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .action-buttons {
        display: none;
    }

    .checklist-checkbox:checked ~ .checklist-label::before,
    .checklist-checkbox:checked ~ .checklist-label::after {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Smooth transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
label:focus-visible {
    outline: 2px solid var(--primary-pink);
    outline-offset: 2px;
}