/* Biorhythm Calculator Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.app-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 0.8s ease;
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

/* Input Section */
.date-input-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.date-input {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    min-width: 200px;
}

.date-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.calculate-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Results Section */
.results-section {
    display: none;
}

.results-section.hidden {
    display: none;
}

.results-section:not(.hidden) {
    display: block;
}

/* Visualization Section */
.chart-subtitle {
    text-align: center;
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.canvas-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#biorhythm-canvas {
    width: 100%;
    height: 300px;
    display: block;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.physical {
    background: #ff6b6b;
}

.legend-color.emotional {
    background: #4ecdc4;
}

.legend-color.intellectual {
    background: #95e1d3;
}

/* Cycles Grid */
.cycles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cycle-card {
    padding: 2rem;
}

.cycle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cycle-header h3 {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.cycle-percentage {
    font-size: 1.8rem;
    font-weight: 700;
}

.physical-card .cycle-percentage {
    color: #ff6b6b;
}

.emotional-card .cycle-percentage {
    color: #4ecdc4;
}

.intellectual-card .cycle-percentage {
    color: #95e1d3;
}

.cycle-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.cycle-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease;
}

.physical-fill {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
}

.emotional-fill {
    background: linear-gradient(90deg, #4ecdc4, #6de4d9);
}

.intellectual-fill {
    background: linear-gradient(90deg, #95e1d3, #b3efe5);
}

.cycle-state {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cycle-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Share Section */
.share-container {
    padding-top: 0;
}

.share-title {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .date-input-container {
        flex-direction: column;
        width: 100%;
    }

    .date-input,
    .calculate-btn {
        width: 100%;
    }

    #biorhythm-canvas {
        height: 250px;
    }

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

    .legend {
        gap: 1rem;
    }

    .back-btn {
        position: relative;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 1rem 0.5rem;
    }

    .cycle-header h3 {
        font-size: 1.3rem;
    }

    .cycle-percentage {
        font-size: 1.5rem;
    }

    #biorhythm-canvas {
        height: 200px;
    }
}