/* Calendar layout */
.cal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}
@media (max-width: 768px) {
    .cal-layout {
        grid-template-columns: 1fr;
    }
}

/* Month grid */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-header > div {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    padding: 4px 0;
}

/* Day cell */
.cal-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    padding: 2px;
    min-height: 52px;
}
.cal-cell:hover {
    background: rgba(212,175,55,0.08);
}
.cal-cell.is-today {
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 8px rgba(212,175,55,0.15);
}
.cal-cell.is-selected {
    background: var(--gold-glow);
}
.cal-cell .cal-day {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    line-height: 1.2;
}
.cal-cell.is-today .cal-day {
    color: var(--gold);
}
.cal-cell .cal-lunar {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cal-cell .cal-lunar.is-jieqi {
    color: #4ade80;
    font-weight: 600;
}
.cal-cell .cal-lunar.is-festival {
    color: #f87171;
}
.cal-cell .cal-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f87171;
}

/* Weekend colors */
.cal-cell.is-weekend .cal-day {
    color: rgba(255,255,255,0.5);
}

/* Nav buttons */
.cal-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}
.cal-nav-btn:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
}

/* Detail cards */
.detail-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg-tertiary);
}
.detail-item .detail-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2px;
}
.detail-item .detail-value {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* Time table */
.time-row {
    display: grid;
    grid-template-columns: 60px 70px 1fr;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    align-items: center;
}
.time-row:last-child { border-bottom: none; }
.time-row .time-name {
    color: var(--gold);
    font-weight: 600;
}
.time-row .time-range {
    color: rgba(255,255,255,0.4);
}
.time-row .time-luck-good { color: #4ade80; }
.time-row .time-luck-bad { color: #f87171; }
.time-row .time-luck-neutral { color: rgba(255,255,255,0.4); }

/* Tags */
.yi-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    background: rgba(74,222,128,0.1);
    color: #4ade80;
}
.ji-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    background: rgba(248,113,113,0.1);
    color: #f87171;
}
.shen-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.shen-tag.good {
    background: rgba(74,222,128,0.08);
    color: #86efac;
}
.shen-tag.bad {
    background: rgba(248,113,113,0.08);
    color: #fca5a5;
}
