:root {
    --primary: #7E57C2;
    --primary-dark: #5E35B1;
    --primary-light: #9575CD;
    --bg-dark: #0A0A1A;
    --bg-card: rgba(20, 20, 30, 0.8);
    --text-light: #ffffff;
    --glow: rgba(126, 87, 194, 0.4);
    --accent-gold: #FFD700;
    --accent-red: #FF4D4D;
    --accent-blue: #4DD0FF;
}

body {
    background: var(--bg-dark);
    background: linear-gradient(135deg, 
        var(--bg-dark) 0%,
        rgba(126, 87, 194, 0.1) 50%,
        var(--bg-dark) 100%
    );
    color: var(--text-light);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Animált háttér elemek */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: floatBackground 15s infinite alternate ease-in-out;
}

body::before {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

body::after {
    background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -7.5s;
}

@keyframes floatBackground {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.2);
    }
    100% {
        transform: translate(-50px, -50px) scale(1);
    }
}

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

.nav-bar {
    position: fixed;
    top: 20px;
    left: 20px;
}

.home-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.calendar-container {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
}

.day {
    aspect-ratio: 1;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.day-number {
    font-weight: bold;
    font-size: 12px;
}

.lunar-phase {
    font-size: 14px;
    opacity: 0.8;
}

.day-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

.zodiac-symbol {
    font-size: 12px;
    opacity: 0.7;
}

.reduction-sum {
    width: 100%;
    text-align: center;
    margin: 2px 0;
}

.reduction-text {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
}

.day-footer {
    width: 100%;
    margin-top: 2px;
}

.energy-level {
    height: 2px;
    border-radius: 1px;
    width: 100%;
}

.energy-level.high {
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
}

.energy-level.medium {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.energy-level.low {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.lunar-special {
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.universal-number {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary);
}

.day-number {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 4px;
}

.day:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.day.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 0 20px var(--glow);
}

.day.selected .universal-number {
    color: var(--text-light);
}

.day.today {
    border: 2px solid var(--primary-light);
    box-shadow: 0 0 15px var(--glow);
}

.legend {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(126, 87, 194, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.day-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.day-analysis-header h3 {
    margin: 0;
    color: var(--accent-gold);
    font-size: 1.5em;
}

.energy-indicator {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.energy-indicator.high {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
}

.energy-indicator.medium {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.energy-indicator.low {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.analysis-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.analysis-card h4 {
    margin: 0 0 10px 0;
    color: var(--primary-light);
    font-size: 1em;
}

.number-display {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}

.number-display.master {
    background: linear-gradient(45deg, var(--primary), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lunar-display, .zodiac-display, .chinese-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.lunar-symbol, .zodiac-symbol {
    font-size: 1.5em;
}

.lunar-name, .zodiac-name {
    font-size: 0.9em;
    color: var(--text-light);
    opacity: 0.8;
}

.daily-recommendation {
    background: rgba(126, 87, 194, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.daily-recommendation h4 {
    margin: 0 0 10px 0;
    color: var(--accent-gold);
}

.daily-recommendation p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.9;
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .calendar-container {
        padding: 15px;
        margin: 0;
        max-width: 100%;
    }
    
    .calendar-header {
        margin-bottom: 15px;
    }
    
    .calendar-header h2 {
        font-size: 1.2em;
    }
    
    .calendar-header button {
        padding: 8px;
        font-size: 16px;
    }
    
    .weekdays {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .days-grid {
        gap: 2px;
    }
    
    .day {
        font-size: 12px;
        padding: 4px;
        min-height: 40px;
    }
    
    .day-number {
        font-size: 14px;
        font-weight: bold;
    }
    
    .universal-number {
        font-size: 16px;
    }
    
    .reduction-text {
        font-size: 7px;
        padding: 1px 2px;
    }
    
    .lunar-phase {
        font-size: 10px;
    }
    
    .zodiac-symbol {
        font-size: 10px;
    }
    
    .energy-level {
        height: 1px;
    }
} 

.master-number {
    background: linear-gradient(45deg, var(--primary) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.8em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.master-day {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.master-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.master-title {
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Animáció a mesterszámokhoz */
@keyframes masterGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
}

.master-day {
    animation: masterGlow 2s infinite;
}

/* Mesterszám magyarázat stílusa */
.legend-item .master-title + p {
    color: var(--accent-gold);
    font-style: italic;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
} 

.month-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chinese-year {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1em;
    color: var(--accent-gold);
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 215, 0, 0.05) 100%);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    animation: floatAnimation 4s infinite ease-in-out;
}

.zodiac-symbol {
    font-size: 2em;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    animation: rotateSlight 6s infinite ease-in-out;
}

.zodiac-name {
    font-size: 1.2em;
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-gold) 0%, #FFF5D4 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Új animációk */
@keyframes rotateSlight {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

/* Továbbfejlesztett napi megjelenítés */
.chinese-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 215, 0, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.chinese-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.chinese-info .zodiac-symbol {
    font-size: 2.5em;
    margin-right: 0.5rem;
}

.chinese-info .element-info {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Továbbfejlesztett reszponzív design */
@media (max-width: 768px) {
    .chinese-year {
        padding: 0.6rem 1rem;
        font-size: 0.9em;
    }

    .zodiac-symbol {
        font-size: 1.8em;
    }

    .chinese-info {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem;
    }
}

/* Extra small screens (phones) */
@media (max-width: 480px) {
    body {
        padding: 2px;
    }
    
    .calendar-container {
        padding: 10px;
        border-radius: 10px;
    }
    
    .calendar-header h2 {
        font-size: 1em;
    }
    
    .calendar-header button {
        padding: 6px;
        font-size: 14px;
    }
    
    .weekdays {
        font-size: 10px;
    }
    
    .day {
        font-size: 10px;
        padding: 2px;
        min-height: 35px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .universal-number {
        font-size: 14px;
    }
    
    .reduction-text {
        font-size: 6px;
        padding: 1px;
    }
    
    .lunar-phase {
        font-size: 8px;
    }
    
    .zodiac-symbol {
        font-size: 8px;
    }
    
    .master-number {
        font-size: 1.4em;
    }
} 