@charset "utf-8";
/* CSS Document */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2a 100%);
    color: #e0d0b0;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Анимация звёзд */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: starTwinkle 3s infinite alternate;
}

@keyframes starTwinkle {
    from { opacity: 0.2; transform: scale(1); }
    to { opacity: 1; transform: scale(1.5); }
}

/* Луна с пульсацией */
.moon {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 50%, #f0e68c, #8b4513);
    box-shadow: 0 0 60px rgba(240, 230, 140, 0.4);
    animation: moonGlow 5s infinite alternate;
    z-index: -1;
}

@keyframes moonGlow {
    from { box-shadow: 0 0 60px rgba(240, 230, 140, 0.4); }
    to { box-shadow: 0 0 80px rgba(240, 230, 140, 0.6); }
}

/* Созвездие Овна */
.constellation {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 90px;
    height: 90px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 L60,40 L90,40 L65,60 L75,90 L50,70 L25,90 L35,60 L10,40 L40,40 Z" fill="none" stroke="#d4af37" stroke-width="2"/></svg>');
    opacity: 0.3;
    animation: constellationGlow 7s infinite alternate;
}

@keyframes constellationGlow {
    from { opacity: 0.2; transform: rotate(0deg); }
    to { opacity: 0.7; transform: rotate(360deg); }
}

/* Заголовок */
.header {
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(10, 10, 26, 0.8);
    border-bottom: 1px solid #8b4513;
    position: relative;
}

.header h1 {
    color: #d4af37;
    font-size: 2.8rem;
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.2);
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* Основной контент */
.content {
    max-width: 950px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* Карточки периодов */
.period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.period-card {
    background: rgba(30, 30, 50, 0.7);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 69, 19, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.period-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8b4513, #d4af37);
}

.period-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: #d4af37;
}

/* Ключевые влияния */
.influences-list {
    counter-reset: influence-counter;
    margin-top: 2rem;
}

.influences-list li {
    margin-bottom: 2.5rem;
    padding-left: 3rem;
    position: relative;
}

.influences-list li::before {
    counter-increment: influence-counter;
    content: counter(influence-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: #8b4513;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

/* Рекомендации */
.recommendation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

.rec-card {
    padding: 2rem;
    border-radius: 15px;
    border-left: 6px solid;
    background: rgba(40, 40, 60, 0.6);
    transition: transform 0.3s ease;
}

.favorable {
    border-left-color: #2e8b57;
}

.avoid {
    border-left-color: #8b0000;
}

.rec-card:hover {
    transform: scale(1.03);
}

/* Практики */
.practice-list {
    list-style: none;
    margin-top: 1.5rem;
}

.practice-list li {
    padding: 1.2rem 0;
    border-bottom: 1px dashed rgba(224, 208, 176, 0.2);
    position: relative;
    cursor: pointer;
}

.practice-list li::before {
    content: '✨';
    position: absolute;
    left: -1.5rem;
    top: 0.3rem;
}

.practice-list li:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Символы и цвета дня */
.symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.symbol-item {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 30, 50, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(139, 69, 19, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.symbol-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, #d4af37, #ff6b1f);
}

.symbol-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.symbol-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid #e0d0b0;
}

.red { background: #8b0000; }

.gem-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gem {
    font-size: 3rem;
}

.gem.red { color: #d4af37; }
.gem.dark-red { color: #8b4513; }
.gem.orange { color: #ff8c00; }

/* Сферы жизни */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.area-card {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: rgba(40, 40, 60, 0.6);
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.career::before { background: #2e8b57; }
.relationships::before { background: #d4af37; }
.health::before { background: #8b0000; }
.creativity::before { background: #4b0082; }

.area-card:hover {
    transform: scale(1.04);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Итог */
.conclusion {
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(50, 50, 70, 0.5);
    border-radius: 20px;
    border: 1px solid #8b4513;
    text-align: center;
}

.conclusion ul {
    list-style: none;
    margin-top: 1.5rem;
}

.conclusion li {
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
}

.conclusion li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #d4af37;
}

/* Футер */
.footer {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: rgba(10, 10, 26, 0.9);
    border-top: 1px solid #8b4513;
    color: #a0a0a0;
    font-style: italic;
}

/* Ссылки */
a {
    color: #d45500; /* базовый морковный цвет */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff8000;
    transition: width 0.3s ease;
}

a:hover {
    color: #ff8000; /* яркий морковный при наведении */
}

a:hover::after {
    width: 100%;
}

a:visited {
    color: #b34700;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .period-grid,
    .recommendation-grid,
    .symbol-grid,
    .area-grid {
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 1.5rem 0.5rem;
    }
}
/* Мистический кристалл */
.mystical-crystal {
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    to {
        transform: scale(1.1);
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 40px rgba(255, 128, 0, 0.4);
    }
}

/* Значок лунных суток */
.lunar-badge {
    background: rgba(139, 69, 19, 0.8);
    color: #d4af37;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.badge-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 25px;
    background: radial-gradient(circle, #d4af37 0%, transparent 70%);
    opacity: 0.3;
    animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
    from { opacity: 0.2; }
    to { opacity: 0.6; }
}