/**
 * Wavespell Simple Styles
 * Skaidrs un sakārtots viļņu izkārtojums
 */

.wavespell-container {
    background: var(--bg-secondary);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
    padding: 2rem;
}

/* Virsraksts */
.wavespell-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--maya-gold);
}

.wavespell-nawal-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--maya-gold);
    border-radius: 50%;
    padding: 0.75rem;
    flex-shrink: 0;
}

.wavespell-nawal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wavespell-title-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--maya-gold);
    margin: 0 0 0.5rem;
}

.wavespell-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Labuma sekcija */
.wavespell-benefit {
    background: var(--bg-card);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.wavespell-benefit h3 {
    color: var(--maya-gold);
    margin: 0 0 1rem;
    font-family: 'Cinzel', serif;
}

.wavespell-benefit > p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0 0 1rem;
    line-height: 1.6;
}

.wavespell-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    flex-wrap: wrap;
}

.flow-start, .flow-end {
    flex: 1;
    min-width: 200px;
    font-size: 0.9rem;
}

.flow-start {
    color: var(--text-secondary);
}

.flow-arrow {
    color: var(--maya-gold);
    font-size: 1.5rem;
    font-weight: bold;
}

.flow-end {
    color: var(--maya-gold);
    font-weight: 600;
}

/* 13 dienu režģis */
.wavespell-days {
    margin-bottom: 2rem;
}

.wavespell-days h3 {
    font-family: 'Cinzel', serif;
    color: var(--maya-gold);
    margin: 0 0 1rem;
}

.wavespell-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.wavespell-day {
    background: var(--bg-card);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wavespell-day:hover {
    border-color: var(--maya-gold);
    transform: translateY(-2px);
}

.wavespell-day.current {
    border-color: var(--maya-gold);
    box-shadow: 0 0 0 2px var(--maya-gold);
    background: rgba(201, 169, 97, 0.1);
}

.wavespell-day.key-day::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--maya-terracotta);
    border-radius: 50%;
}

.day-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.day-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.day-nawal-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    padding: 0.25rem;
}

.day-nawal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.day-tzolkin {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.day-tone {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--maya-gold);
}

.day-nawal {
    font-size: 0.75rem;
    color: var(--text-primary);
}

.day-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--maya-gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* Atslēgas dienas */
.wavespell-keys {
    margin-bottom: 2rem;
}

.wavespell-keys h3 {
    font-family: 'Cinzel', serif;
    color: var(--maya-gold);
    margin: 0 0 1rem;
}

.keys-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.key-day-card {
    background: var(--bg-card);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
}

.key-day-card.day-1 { border-top: 3px solid var(--maya-gold); }
.key-day-card.day-7 { border-top: 3px solid var(--maya-jade); }
.key-day-card.day-10 { border-top: 3px solid var(--maya-terracotta); }
.key-day-card.day-13 { border-top: 3px solid var(--color-west); }

.key-number {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--maya-gold);
    font-weight: 700;
}

.key-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.key-day-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Padomi */
.wavespell-tips h3 {
    font-family: 'Cinzel', serif;
    color: var(--maya-gold);
    margin: 0 0 1rem;
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--maya-stone);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.tip-card strong {
    display: block;
    color: var(--maya-gold);
    margin-bottom: 0.5rem;
}

.tip-card p {
    color: var(--text-secondary);
    margin: 0;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyword-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--maya-stone);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Modālais logs */
.wavespell-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.wavespell-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.wavespell-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--maya-gold);
    border-radius: 4px;
    max-width: 400px;
    width: 100%;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 4px;
    padding: 0.5rem;
}

.modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-title h2 {
    font-family: 'Cinzel', serif;
    color: var(--maya-gold);
    margin: 0 0 0.25rem;
}

.modal-title p {
    color: var(--text-secondary);
    margin: 0;
}

.modal-body p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.modal-key {
    background: var(--maya-gold);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 1024px) {
    .wavespell-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .keys-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wavespell-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .wavespell-header {
        flex-direction: column;
        text-align: center;
    }
    
    .keys-grid {
        grid-template-columns: 1fr;
    }
    
    .wavespell-flow {
        flex-direction: column;
        text-align: center;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .wavespell-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
