/* ===== HARNESS Daily Affirmations System - Complete Styling ===== */

/* ===== AFFIRMATION MODAL ===== */
.affirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.affirmation-modal.active {
    opacity: 1;
    visibility: visible;
}

.affirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.affirmation-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    padding: 32px;
}

.affirmation-modal.active .affirmation-content {
    transform: scale(1) translateY(0);
}

.affirmation-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.affirmation-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* ===== AFFIRMATION HEADER ===== */
.affirmation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.affirmation-time {
    font-size: 18px;
    font-weight: 700;
    color: #00A8A8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.affirmation-category {
    background: linear-gradient(135deg, #00BDBD, #F6CC00);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== AFFIRMATION MAIN ===== */
.affirmation-main {
    background: linear-gradient(135deg, rgba(0, 189, 189, 0.08), rgba(246, 204, 0, 0.08));
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.affirmation-main::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 100px;
    color: rgba(0, 189, 189, 0.1);
    font-family: 'Bree Serif', serif;
    line-height: 1;
}

.affirmation-main::after {
    content: '"';
    position: absolute;
    bottom: -40px;
    right: 20px;
    font-size: 100px;
    color: rgba(246, 204, 0, 0.1);
    font-family: 'Bree Serif', serif;
    line-height: 1;
}

.affirmation-text {
    font-family: 'Bree Serif', serif;
    font-size: 26px;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ===== AFFIRMATION GUIDE ===== */
.affirmation-guide {
    margin-bottom: 24px;
}

.affirmation-guide h3 {
    font-family: 'Bree Serif', serif;
    font-size: 20px;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #00BDBD;
}

.affirmation-steps {
    background: #f8f9fa;
    padding: 20px 20px 20px 40px;
    border-radius: 12px;
    margin: 0 0 20px 0;
    list-style: none;
    counter-reset: affirmation-counter;
}

.affirmation-steps li {
    counter-increment: affirmation-counter;
    position: relative;
    margin-bottom: 14px;
    line-height: 1.6;
    color: #333;
}

.affirmation-steps li:last-child {
    margin-bottom: 0;
}

.affirmation-steps li::before {
    content: counter(affirmation-counter);
    position: absolute;
    left: -30px;
    top: 0;
    background: linear-gradient(135deg, #00BDBD, #00A8A8);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.affirmation-ritual {
    background: linear-gradient(135deg, rgba(217, 70, 239, 0.1), rgba(246, 204, 0, 0.1));
    border-left: 4px solid #DD0E6E;
    padding: 20px;
    border-radius: 12px;
}

.affirmation-ritual h4 {
    font-family: 'Bree Serif', serif;
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.affirmation-ritual p {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-style: italic;
}

/* ===== AFFIRMATION ACTIONS ===== */
.affirmation-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.affirmation-actions button {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Bree Serif', serif;
}

.btn-favorite {
    background: white;
    color: #DD0E6E;
    border: 2px solid #DD0E6E;
}

.btn-favorite:hover {
    background: #DD0E6E;
    color: white;
}

.btn-favorite.is-favorite {
    background: #DD0E6E;
    color: white;
}

.btn-favorite.is-favorite:hover {
    background: #c00c5f;
}

.btn-another {
    background: white;
    color: #00BDBD;
    border: 2px solid #00BDBD;
}

.btn-another:hover {
    background: #00BDBD;
    color: white;
}

.btn-done {
    background: linear-gradient(135deg, #00BDBD, #00A8A8);
    color: white;
}

.btn-done:hover {
    background: linear-gradient(135deg, #00A8A8, #008c8c);
}

/* ===== AFFIRMATION STREAK ===== */
.affirmation-streak {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(246, 204, 0, 0.2), rgba(246, 204, 0, 0.1));
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ===== AFFIRMATIONS VIEW (Full Page) ===== */
.daily-affirmations {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.daily-affirmations-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(0, 189, 189, 0.1), rgba(217, 70, 239, 0.1));
    border-radius: 20px;
}

.daily-affirmations-header h2 {
    font-family: 'Bree Serif', serif;
    font-size: 36px;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.daily-date {
    font-size: 14px;
    color: #00BDBD;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px 0;
}

.daily-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* ===== TIME-BASED AFFIRMATION SECTIONS ===== */
.affirmation-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: 12px;
}

.section-header.morning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.15));
}

.section-header.midday {
    background: linear-gradient(135deg, rgba(0, 189, 189, 0.15), rgba(0, 168, 168, 0.15));
}

.section-header.evening {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.15), rgba(156, 39, 176, 0.15));
}

.section-header h3 {
    font-family: 'Bree Serif', serif;
    font-size: 28px;
    margin: 0;
    color: #1a1a1a;
}

.section-emoji {
    font-size: 32px;
}

/* ===== AFFIRMATION CARD GRID ===== */
.affirmations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.affirmation-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.affirmation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00BDBD, #F6CC00, #DD0E6E);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.affirmation-card:hover::before {
    transform: scaleX(1);
}

.affirmation-card:hover {
    border-color: #00BDBD;
    box-shadow: 0 8px 24px rgba(0, 189, 189, 0.2);
    transform: translateY(-4px);
}

.affirmation-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00BDBD;
    margin-bottom: 12px;
}

.affirmation-card-text {
    font-family: 'Bree Serif', serif;
    font-size: 18px;
    line-height: 1.5;
    color: #1a1a1a;
    margin: 0;
}

/* ===== GUIDANCE SECTION ===== */
.guidance-section {
    background: linear-gradient(135deg, rgba(0, 189, 189, 0.08), rgba(246, 204, 0, 0.08));
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
}

.guidance-section h3 {
    font-family: 'Bree Serif', serif;
    font-size: 28px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    text-align: center;
}

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

.guidance-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #00BDBD;
}

.guidance-card h4 {
    font-family: 'Bree Serif', serif;
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guidance-card ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.guidance-card li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 8px;
    line-height: 1.5;
    color: #333;
}

.guidance-card li::before {
    content: '✓';
    position: absolute;
    left: -12px;
    color: #00BDBD;
    font-weight: 700;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .affirmation-content {
        width: 95%;
        padding: 24px 20px;
        max-height: 90vh;
    }
    
    .affirmation-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .affirmation-text {
        font-size: 22px;
    }
    
    .affirmation-steps {
        padding: 16px 16px 16px 36px;
    }
    
    .affirmation-actions {
        flex-direction: column;
    }
    
    .affirmation-actions button {
        width: 100%;
        min-width: auto;
    }
    
    .daily-affirmations {
        padding: 16px;
    }
    
    .daily-affirmations-header {
        padding: 24px 20px;
    }
    
    .daily-affirmations-header h2 {
        font-size: 28px;
    }
    
    .section-header h3 {
        font-size: 24px;
    }
    
    .affirmations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .guidance-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.affirmation-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.affirmation-card:nth-child(1) { animation-delay: 0.1s; }
.affirmation-card:nth-child(2) { animation-delay: 0.15s; }
.affirmation-card:nth-child(3) { animation-delay: 0.2s; }
.affirmation-card:nth-child(4) { animation-delay: 0.25s; }
.affirmation-card:nth-child(5) { animation-delay: 0.3s; }
.affirmation-card:nth-child(6) { animation-delay: 0.35s; }
.affirmation-card:nth-child(7) { animation-delay: 0.4s; }
.affirmation-card:nth-child(8) { animation-delay: 0.45s; }

/* ===== PRINT STYLES ===== */
@media print {
    .affirmation-modal,
    .affirmation-actions,
    .affirmation-close,
    .affirmation-streak {
        display: none;
    }
    
    .affirmation-content {
        box-shadow: none;
        max-width: 100%;
        page-break-inside: avoid;
    }
}
