/**
 * Golden Hour Feature Styles - Complete Version
 * All styles for The Golden Hour feature with fixes
 */

/* ==================== */
/* CARD CLICK STYLES    */
/* ==================== */

.card-content {
    cursor: pointer;
}

/* ==================== */
/* GOLDEN HOUR CARD     */
/* ==================== */

.eternal-card.golden-hour-card {
    background: linear-gradient(135deg, #fef3e2 0%, #fff9f0 50%, #ffffff 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
}

.eternal-card.golden-hour-card::before {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
}

.eternal-card.golden-hour-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent);
    border-radius: 50%;
    animation: goldenPulse 3s ease-in-out infinite;
}

@keyframes goldenPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.6; 
    }
}

.golden-hour-card .eternal-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

/* Golden Hour Preview */
.golden-hour-preview {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(156, 102, 68, 0.2);
}

/* Golden CTA Button */
.golden-cta-button {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-family: var(--font-serif);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.golden-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.golden-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.golden-cta-button:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 102, 68, 0.3);
}

.button-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.golden-cta-button:hover .button-icon {
    transform: rotate(15deg);
}

/* Golden Hour Expanded View */
.golden-hour-expanded {
    margin-top: 1.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.golden-hour-expanded.visible {
    opacity: 1;
    max-height: 2500px; /* Increased to ensure all content fits */
    overflow: visible;
}

/* Reset state - ensures clean transitions */
.golden-hour-expanded:not(.visible) {
    max-height: 0 !important;
    overflow: hidden !important;
}

/* Golden Hour Intro */
.golden-hour-intro {
    margin-bottom: 1.5rem;
    text-align: center;
}

.time-greeting {
    font-size: 1.05rem;
    color: var(--color-ink-light);
    font-style: italic;
    margin: 0;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    line-height: 1.6;
}

/* Practice Cards */
.practice-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(156, 102, 68, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible; /* Important: ensure content is not cut off */
    min-height: auto;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--practice-color), transparent);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.practice-card:hover::before {
    width: 8px;
    opacity: 1;
}

.practice-card.focused {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 248, 0.98));
    border-color: rgba(156, 102, 68, 0.2);
}

/* Practice Header */
.practice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.practice-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(156, 102, 68, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.practice-card:hover .practice-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(156, 102, 68, 0.15), rgba(255, 215, 0, 0.15));
}

.practice-time-label {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-mono);
}

/* Practice Content */
.practice-content {
    padding-left: 0.5rem;
    overflow: visible;
    width: 100%;
}

/* Quote Styling */
.practice-quote {
    font-size: 1.375rem;
    font-style: italic;
    color: var(--color-ink);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-weight: 400;
    position: relative;
    padding: 0 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
}

.quote-mark {
    color: rgba(156, 102, 68, 0.3);
    font-size: 1.5rem;
    font-family: Georgia, serif;
    position: relative;
    top: 2px;
}

/* Practice Prompt */
.practice-prompt {
    background: linear-gradient(135deg, rgba(156, 102, 68, 0.05), rgba(255, 215, 0, 0.03));
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border-left: 3px solid rgba(156, 102, 68, 0.25);
    position: relative;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.prompt-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.practice-prompt p {
    color: var(--color-ink);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
    white-space: normal;
}

/* Practice Reflection */
.practice-reflection {
    font-style: italic;
    color: var(--color-ink-light);
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(156, 102, 68, 0.1);
    font-size: 1.125rem;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Color coding for different times */
.practice-card[data-time="sunrise"] {
    --practice-color: #FFA500;
}

.practice-card[data-time="noon"] {
    --practice-color: #FFD700;
}

.practice-card[data-time="sunset"] {
    --practice-color: #FF6B6B;
}

/* Golden Hour Footer */
.golden-hour-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(156, 102, 68, 0.15);
}

.practice-reminder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-ink-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.reminder-icon {
    font-size: 1.1rem;
    animation: ring 4s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    5%, 15% { transform: rotate(-15deg); }
    10%, 20% { transform: rotate(15deg); }
    25% { transform: rotate(0deg); }
}

/* Share Button */
.golden-share-button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #33302e;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 25px;
    font-family: var(--font-serif);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.golden-share-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.golden-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.golden-share-button:hover::after {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateY(100%);
        opacity: 0;
    }
}

/* ==================== */
/* SHARE MODAL          */
/* ==================== */

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    pointer-events: none; /* Prevent interaction when hidden */
}

.share-modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Allow interaction when visible */
}

.share-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.share-modal.visible .share-modal-content {
    transform: scale(1);
}

.share-modal h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-size: 1.75rem;
    font-weight: 400;
}

.share-subtitle {
    text-align: center;
    color: var(--color-ink-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.share-option {
    padding: 1rem;
    border: 2px solid var(--color-border);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-serif);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.share-option:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-option:active {
    transform: translateY(0);
}

.share-option-icon {
    font-size: 1.25rem;
}

.close-modal {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-serif);
    font-size: 1rem;
}

.close-modal:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-accent);
}

.instagram-note {
    font-size: 0.85rem;
    color: var(--color-ink-lighter);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ==================== */
/* NOTIFICATION         */
/* ==================== */

.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: var(--font-serif);
    font-size: 1rem;
    max-width: 300px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==================== */
/* RESPONSIVE STYLES    */
/* ==================== */

@media (max-width: 768px) {
    .golden-hour-card {
        padding: 1.5rem;
    }
    
    .golden-hour-card::after {
        width: 60px;
        height: 60px;
        top: -10px;
        right: -10px;
    }
    
    .golden-hour-expanded.visible {
        max-height: none; /* Remove height restriction on mobile */
    }
    
    .practice-card {
        padding: 1.5rem 1rem;
    }
    
    .practice-icon {
        width: 40px;
        height: 40px;
        font-size: 1.75rem;
    }
    
    .practice-quote {
        font-size: 1.2rem;
        padding: 0 0.5rem;
    }
    
    .practice-prompt {
        padding: 1rem;
    }
    
    .practice-reflection {
        font-size: 1rem;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
    
    .share-modal-content {
        padding: 1.5rem;
    }
    
    .notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* ==================== */
/* ANIMATIONS           */
/* ==================== */

@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 20px rgba(156, 102, 68, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
}

.practice-card.pulse {
    animation: pulse 0.6s ease-in-out;
}

/* ==================== */
/* ACCESSIBILITY        */
/* ==================== */

.golden-cta-button:focus,
.golden-share-button:focus,
.share-option:focus,
.close-modal:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .golden-hour-card::after,
    .golden-hour-card .eternal-icon {
        animation: none;
    }
    
    .golden-hour-expanded {
        transition: opacity 0.01ms;
    }
    
    .practice-card {
        transition: none;
    }
    
    .share-modal,
    .notification {
        transition: opacity 0.01ms;
    }
}