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

body {
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
   color: #fff;
   min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.today-phase {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: opacity 0.3s;
}

.today-phase.loading {
    opacity: 0.6;
}

.moon-icon {
    font-size: 100px;
    margin-bottom: 20px;
}

.phase-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.info-item span {
    display: block;
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 8px;
}

.info-item strong {
    font-size: 1.5em;
    color: #64b5f6;
}

.info-item .emoji {
    font-size: 2em;
    margin-bottom: 5px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #64b5f6, #90caf9);
    transition: width 0.3s;
}

.week-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.day-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.day-card.selected {
    background: rgba(100, 181, 246, 0.2);
    border-color: #64b5f6;
    box-shadow: 0 5px 25px rgba(100, 181, 246, 0.4);
}

.day-card .date {
    font-weight: bold;
    margin-bottom: 10px;
    color: #64b5f6;
    font-size: 1.1em;
}

.day-card.selected .date {
    color: #90caf9;
}

.day-card .moon {
    font-size: 50px;
    margin: 10px 0;
}

.day-card .phase-name {
    font-size: 0.85em;
    color: #aaa;
    margin-bottom: 5px;
}

.day-card .lunar-day {
    font-size: 0.8em;
    color: #90caf9;
    margin-top: 5px;
}

.recommendations {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
    margin-bottom: 1rem;
}

.recommendations.loading {
    opacity: 0.6;
}

.recommendations h2 {
    margin-bottom: 25px;
    color: #64b5f6;
    font-size: 1.8em;
    text-align: center;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.rec-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #4caf50;
    transition: transform 0.2s;
}

.rec-item:hover {
    transform: translateX(5px);
}

.rec-item.level-bad {
    border-left-color: #f44336;
}

.rec-item.level-medium {
    border-left-color: #ff9800;
}

.rec-item.level-good {
    border-left-color: #4caf50;
}

.rec-item.level-excellent {
    border-left-color: #00e676;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rec-icon {
    font-size: 1.5em;
}

.rec-category {
    font-weight: bold;
    color: #64b5f6;
    flex: 1;
}

.rec-level {
    font-size: 0.85em;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.rec-text {
    color: #ddd;
    line-height: 1.6;
}

.section-title {
    margin-bottom: 20px;
    color: #64b5f6;
    font-size: 1.5em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .phase-info {
        grid-template-columns: repeat(2, 1fr);
    }

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