/* Base styles with color scheme */
:root {
    --primary-color: #7C5CBF;
    --secondary-color: #63B3ED;
    --accent-color: #9F7AEA;
    --background-color: #F7FAFC;
    --text-color: #2D3748;
    --shadow: 0 4px 6px rgba(124, 92, 191, 0.1);
    --meditation-color-1: rgba(124, 92, 191, 0.5);
    --meditation-color-2: rgba(159, 122, 234, 0.4);
    --meditation-color-3: rgba(144, 205, 244, 0.4);
    --healing-color-1: rgba(72, 187, 120, 0.5);
    --healing-color-2: rgba(56, 178, 172, 0.4);
    --healing-color-3: rgba(49, 151, 149, 0.4);
    --earth-color-1: rgba(66, 153, 225, 0.5);
    --earth-color-2: rgba(56, 161, 105, 0.4);
    --earth-color-3: rgba(49, 151, 149, 0.4);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(to right, rgba(124, 92, 191, 0.05), rgba(99, 179, 237, 0.05));
    border-radius: 12px;
}

#main-title {
    color: var(--primary-color);
    font-size: 2.8em;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(124, 92, 191, 0.1);
}

/* Main content */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    display: block;
}

.intro {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-color);
    opacity: 0.9;
}

/* Situation buttons */
.situation-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.situation-group button {
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.situation-group button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(124, 92, 191, 0.2);
}

.situation-icon {
    font-size: 1.3em;
}

/* Tip section */
.tip-section {
    margin-bottom: 40px;
}

.tip-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    text-align: center;
    min-height: 80px;
    box-shadow: 0 8px 16px rgba(124, 92, 191, 0.08);
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

/* Interaction buttons */
.interaction-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.like-button, .next-button {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.05em;
    transition: all 0.3s ease;
    font-weight: 500;
}

.like-button {
    background: linear-gradient(135deg, #FF6B6B, #FF8787);
    color: white;
}

.next-button {
    background: linear-gradient(135deg, var(--secondary-color), #90CDF4);
    color: white;
}

.like-button:hover, .next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Zen mode button */
.zen-button-container {
    text-align: center;
    margin-top: 40px;
}

#zen-mode-button {
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

#zen-mode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(124, 92, 191, 0.2);
}

/* Zen mode content */
.zen-mode-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    overflow: hidden;
    background-color: #1a202c;
    transition: background-color 1s ease;
}

/* Background animation layer */
.zen-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Orb effects */
.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: all 1.5s ease;
}

.orb-1 {
    width: 500px;
    height: 500px;
    top: 20%;
    left: 25%;
    animation: float-slow 20s infinite ease-in-out;
}

.orb-2 {
    width: 400px;
    height: 400px;
    bottom: 20%;
    right: 25%;
    animation: float-medium 15s infinite ease-in-out;
}

.orb-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-fast 10s infinite ease-in-out;
}

/* Meditation mode colors */
.zen-mode-content[data-mode="meditation"] .background-orb {
    opacity: 0.5;
}

.zen-mode-content[data-mode="meditation"] .orb-1 {
    background: var(--meditation-color-1);
}

.zen-mode-content[data-mode="meditation"] .orb-2 {
    background: var(--meditation-color-2);
}

.zen-mode-content[data-mode="meditation"] .orb-3 {
    background: var(--meditation-color-3);
}

/* Healing mode colors */
.zen-mode-content[data-mode="healing"] .background-orb {
    opacity: 0.5;
}

.zen-mode-content[data-mode="healing"] .orb-1 {
    background: var(--healing-color-1);
}

.zen-mode-content[data-mode="healing"] .orb-2 {
    background: var(--healing-color-2);
}

.zen-mode-content[data-mode="healing"] .orb-3 {
    background: var(--healing-color-3);
}

/* Earth mode colors */
.zen-mode-content[data-mode="earth"] .background-orb {
    opacity: 0.5;
}

.zen-mode-content[data-mode="earth"] .orb-1 {
    background: var(--earth-color-1);
}

.zen-mode-content[data-mode="earth"] .orb-2 {
    background: var(--earth-color-2);
}

.zen-mode-content[data-mode="earth"] .orb-3 {
    background: var(--earth-color-3);
}

/* Content layer */
.zen-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Meditation interface */
.meditation-interface {
    text-align: center;
    z-index: 3;
}

/* Frequency buttons */
.frequency-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

/* Frequency button */
.frequency-button {
    padding: 16px 32px;
    min-width: 120px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.frequency-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.frequency-button.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Exit button */
.exit-button {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-top: 40px;
}

.exit-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Animation keyframes */
@keyframes float-slow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(100px, -50px) scale(1.1);
    }
    50% {
        transform: translate(50px, 100px) scale(1.15);
    }
    75% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

@keyframes float-medium {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-80px, -80px) scale(1.15);
    }
    50% {
        transform: translate(80px, 80px) scale(1.2);
    }
    75% {
        transform: translate(80px, -80px) scale(1.15);
    }
}

@keyframes float-fast {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .frequency-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .frequency-button {
        width: 100%;
        max-width: 280px;
    }

    .exit-button {
        width: 100%;
        max-width: 280px;
    }

    .background-orb {
        filter: blur(40px);
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus states */
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}