/* Base styles */
:root {
    --primary-color: #2a2a2a;
    --secondary-color: #3a3a3a;
    --accent-color: #4a4a4a;
    --text-color: #ffffff;
    --background-color: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-start: #2a2a2a;
    --gradient-end: #3a3a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

body.video-loaded {
    background-color: transparent;
}

body.video-loaded .video-background {
    display: block;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    display: none; /* Hide by default, will be shown when video loads */
}

/* Header styles */
.header {
    display: none; /* Hide the old header */
}

/* Controls Overlay */
.controls-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    background: transparent;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #9370db;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 4px rgba(138, 43, 226, 0.2),
        0 0 8px rgba(138, 43, 226, 0.1);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
    box-shadow: 
        0 0 6px rgba(138, 43, 226, 0.3),
        0 0 12px rgba(138, 43, 226, 0.2);
}

.new-button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #9370db;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 
        0 0 4px rgba(138, 43, 226, 0.2),
        0 0 8px rgba(138, 43, 226, 0.1);
}

.new-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 
        0 0 6px rgba(138, 43, 226, 0.3),
        0 0 12px rgba(138, 43, 226, 0.2);
}

/* Light theme adjustments */
body.light-theme .controls-overlay {
    background: transparent;
}

body.light-theme .back-button {
    background: rgba(0, 0, 0, 0.3);
    color: #9370db;
    box-shadow: 
        0 0 15px rgba(138, 43, 226, 0.4),
        0 0 30px rgba(138, 43, 226, 0.2);
}

body.light-theme .back-button:hover {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.5),
        0 0 40px rgba(138, 43, 226, 0.3);
}

body.light-theme .new-button {
    background: rgba(0, 0, 0, 0.3);
    color: #9370db;
    box-shadow: 
        0 0 15px rgba(138, 43, 226, 0.4),
        0 0 30px rgba(138, 43, 226, 0.2);
}

body.light-theme .new-button:hover {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.5),
        0 0 40px rgba(138, 43, 226, 0.3);
}

/* Media Query Adjustments */
@media (max-width: 768px) {
    .controls-overlay {
        padding: 15px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .back-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .new-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .meditation-container {
        margin: 20px;
        padding: 20px;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        background: rgba(255, 255, 255, 0.25);
    }

    .breathing-circle {
        width: 300px;
        height: 300px;
        box-shadow: 
            0 0 25px rgba(138, 43, 226, 0.7),
            0 0 50px rgba(138, 43, 226, 0.5);
    }

    .timer-display {
        font-size: 3.5rem;
    }

    .breathing-instructions {
        font-size: 1.1rem;
    }

    .popup-content {
        padding: 1.8rem;
        max-width: 380px;
    }

    .popup-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .time-button {
        padding: 11px 22px;
        font-size: 0.95rem;
        min-width: 170px;
    }

    .popup-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .about-icon {
        width: 40px;
        height: 40px;
        padding: 6px;
        background: rgba(147, 112, 219, 0.4);
    }

    .about-icon::after {
        font-size: 12px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .controls-overlay {
        padding: 10px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .back-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .new-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .meditation-container {
        margin: 10px;
        padding: 15px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.3);
    }

    .breathing-circle {
        width: 250px;
        height: 250px;
        box-shadow: 
            0 0 20px rgba(138, 43, 226, 0.7),
            0 0 40px rgba(138, 43, 226, 0.5);
    }

    .timer-display {
        font-size: 2.8rem;
    }

    .breathing-instructions {
        font-size: 0.9rem;
    }

    .popup-content {
        padding: 1.6rem;
        max-width: 340px;
    }

    .popup-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1.3rem;
    }

    .time-button {
        padding: 9px 18px;
        font-size: 0.85rem;
        min-width: 150px;
    }

    .about-icon {
        width: 35px;
        height: 35px;
        padding: 5px;
    }

    .about-icon::after {
        display: none;
    }
}

/* About icon */
.about-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    background: rgba(147, 112, 219, 0.2);
    border-radius: 50%;
    padding: 8px;
    margin-left: 10px;
    position: relative;
    box-shadow: 
        0 0 8px rgba(138, 43, 226, 0.3),
        0 0 15px rgba(138, 43, 226, 0.2);
}

.about-icon::after {
    content: 'About Lily';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    color: #9370db;
    padding: 8px 16px;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 
        0 0 5px rgba(138, 43, 226, 0.5),
        0 0 10px rgba(138, 43, 226, 0.3);
    z-index: 1000;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 
        0 0 8px rgba(138, 43, 226, 0.3),
        0 0 15px rgba(138, 43, 226, 0.2);
}

.about-icon:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 12px rgba(138, 43, 226, 0.4),
        0 0 25px rgba(138, 43, 226, 0.3);
}

.about-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    background: rgba(255, 255, 255, 0.15);
    color: #9370db;
    box-shadow: 
        0 0 8px rgba(138, 43, 226, 0.3),
        0 0 15px rgba(138, 43, 226, 0.2);
}

.about-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Meditation container */
.meditation-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: rgba(255, 255, 255, 0.2);
    margin: 35px;
    border-radius: 18px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Breathing circle */
.breathing-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
    transition: transform 4s ease-in-out;
    position: relative;
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.7),
        0 0 60px rgba(138, 43, 226, 0.5);
}

.breathing-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.6);
    animation: pulse 4s infinite;
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.6),
        0 0 40px rgba(138, 43, 226, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Breathing instructions */
.breathing-instructions {
    text-align: center;
    margin-top: 25px;
    font-size: 1.3rem;
    color: var(--text-color);
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.7),
        0 0 20px rgba(138, 43, 226, 0.5);
    font-weight: bold;
    z-index: 1;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-variant: small-caps;
}

/* Timer display */
.timer-display {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 35px;
    color: var(--text-color);
    text-align: center;
    text-shadow: 
        0 0 15px rgba(138, 43, 226, 0.8),
        0 0 30px rgba(138, 43, 226, 0.6);
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Popup styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    position: relative;
    z-index: 1001;
}

.popup-content h2 {
    color: white;
    margin-bottom: 1.6rem;
    font-size: 1.7rem;
    font-weight: bold;
}

.popup-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.time-button {
    padding: 13px 32px;
    background: rgba(147, 112, 219, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    text-align: center;
    border: 2px solid rgba(147, 112, 219, 0.4);
    min-width: 190px;
    box-shadow: 
        0 0 4px rgba(138, 43, 226, 0.2),
        0 0 8px rgba(138, 43, 226, 0.1);
}

.time-button:hover {
    background: rgba(147, 112, 219, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 0 6px rgba(138, 43, 226, 0.3),
        0 0 12px rgba(138, 43, 226, 0.2);
}

/* Meditation questions */
.meditation-questions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.question {
    display: none;
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
    padding: 10px;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.7),
        0 0 20px rgba(138, 43, 226, 0.5);
    transition: opacity 0.5s ease;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.4;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.question.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    .question {
        font-size: 1rem;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .question {
        font-size: 0.9rem;
        padding: 6px;
    }
} 