/* current-year.css */

/* Date Controls */
.date-controls {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.control-wrapper label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.glass-input {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    outline: none;
    font-size: 1rem;
    cursor: pointer;
}

body.light-mode .glass-input {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-primary);
}

/* Hero */
.year-hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    border-radius: 20px;
}

.hero-sub {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

#gregorianYear {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

.roman-year {
    font-family: 'Noto Serif', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.today-date {
    font-size: 1.2rem;
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

body.light-mode .today-date {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

/* Grid */
.calendar-grid {
    display: grid;
    /* Auto-fit with a minimum width ensures cards wrap nicely */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Card Common */
.cal-card {
    padding: 1.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    background: rgba(255, 255, 255, 0.03);
}

body.light-mode .cal-card {
    background: rgba(255, 255, 255, 0.6);
}

.cal-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.8rem;
}

.card-header .icon {
    font-size: 1.5rem;
    font-family: 'JetBrains Mono', monospace; /* For text icons like 01 */
}

.card-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Liturgical Card specific */
.lit-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.lit-season-badge {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}

.lit-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.detail-row span { color: var(--text-secondary); }
.detail-row strong { color: var(--text-primary); }

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Liturgical Colors & Glows */
.lit-bg-glow {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    opacity: 0.1;
    transition: background 0.5s;
}

/* Dynamic classes added by JS */
.lit-color-green .lit-season-badge { background: rgba(81, 207, 102, 0.2); color: #51cf66; border-color: #51cf66; }
.lit-color-green .color-dot { background: #51cf66; box-shadow: 0 0 10px #51cf66; }
.lit-color-green .lit-bg-glow { background: radial-gradient(circle at top right, #51cf66, transparent); }

.lit-color-purple .lit-season-badge { background: rgba(155, 89, 182, 0.2); color: #9b59b6; border-color: #9b59b6; }
.lit-color-purple .color-dot { background: #9b59b6; box-shadow: 0 0 10px #9b59b6; }
.lit-color-purple .lit-bg-glow { background: radial-gradient(circle at top right, #9b59b6, transparent); }

.lit-color-white .lit-season-badge { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: #fff; }
.lit-color-white .color-dot { background: #fff; box-shadow: 0 0 10px #fff; }
.lit-color-white .lit-bg-glow { background: radial-gradient(circle at top right, #fff, transparent); }

.lit-color-red .lit-season-badge { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; border-color: #ff6b6b; }
.lit-color-red .color-dot { background: #ff6b6b; box-shadow: 0 0 10px #ff6b6b; }
.lit-color-red .lit-bg-glow { background: radial-gradient(circle at top right, #ff6b6b, transparent); }

.lit-color-rose .lit-season-badge { background: rgba(255, 105, 180, 0.2); color: #ff69b4; border-color: #ff69b4; }
.lit-color-rose .color-dot { background: #ff69b4; box-shadow: 0 0 10px #ff69b4; }
.lit-color-rose .lit-bg-glow { background: radial-gradient(circle at top right, #ff69b4, transparent); }


/* Chinese Card */
.chinese-content {
    text-align: center;
}

.zodiac-animal {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.zodiac-hanzi {
    font-size: 4rem;
    font-family: 'Noto Serif', serif;
    color: var(--text-primary);
    opacity: 0.2;
    margin: -10px 0;
}

.zodiac-element {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Binary Card */
.binary-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bin-row span { color: var(--text-secondary); font-size: 0.9rem; }
.bin-row code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

/* Simple Cal Content (Hebrew, Islamic, Japan) */
.simple-cal-content {
    text-align: center;
    padding: 1rem 0;
}

.cal-year {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cal-date-str {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Science Card */
.sci-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sci-row:last-child { border: none; }

body.light-mode .seo-content {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 600px) {
    #gregorianYear { font-size: 3.5rem; }
    .calendar-grid { grid-template-columns: 1fr; }
    .input-row { flex-direction: column; }
    .glass-input { width: 100%; }
}
