:root {
    --bg-color: #0d0d0d;
    --table-bg: rgba(20, 20, 20, 0.95);
    --border-color: #333;

    --season-winter: #00f2ff;
    --season-spring: #39ff14;
    --season-summer: #fffb00;
    --season-autumn: #ff6600;
    --ui-accent: #bd00ff;
    --weekend-color: #ff3333;
    --love-color: #ff0055;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-color);
    color: #ccc;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    margin: 0;
}

.font-orbitron {
    font-family: "Orbitron", sans-serif;
}

.font-mono {
    font-family: "JetBrains Mono", monospace;
}

.main-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Layout & Vanilla Replacements for Tailwind */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
    flex-shrink: 0;
    height: 12vh;
}

.header-title-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-title {
    font-size: 1.5rem;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, white, #9ca3af);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    margin: 0;
}

.header-clock-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.header-clock {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.header-date {
    font-size: 0.875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: right;
}

.tables-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.months-panel {
    flex-grow: 3;
    flex-basis: 60%;
}

.days-panel {
    flex-grow: 2;
    flex-basis: 40%;
}

.w-12-center {
    width: 3rem;
    text-align: center;
}

.flag-icon-custom {
    margin-right: 0.75rem;
    border-radius: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.text-semibold {
    font-weight: 600;
}

.text-opacity-80 {
    opacity: 0.8;
}

.detail-title {
    font-size: 1.5rem;
    text-align: center;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, #22d3ee, #a855f7);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.detail-stats-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.detail-big-percent-text {
    font-size: 3.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.detail-days-left-text {
    font-size: 0.875rem;
    color: #9ca3af;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.absolute-inset-zero {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.progress-text-bold {
    color: white;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.margin-top-5 {
    margin-top: 5px;
}

/* Media Queries for responsive text sizes and flex directions */
@media (min-width: 768px) {
    .header-title {
        font-size: 1.875rem;
    }

    .header-clock {
        font-size: 3.75rem;
    }

    .header-date {
        font-size: 1rem;
    }

    .tables-layout {
        flex-direction: row;
    }

    .detail-title {
        font-size: 1.875rem;
    }

    .detail-big-percent-text {
        font-size: 6rem;
    }
}

.neon-table-container {
    background: var(--table-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.neon-table-weekdays {
    height: 50%;
}

.neon-table-months {
    height: 60%;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    height: 100%;
    table-layout: auto;
}

th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ui-accent);
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
    vertical-align: middle;
}

td {
    padding: 0 16px;
    height: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

tbody tr {
    opacity: 0.75;
    filter: grayscale(0.2);
    transition: all 0.2s;
}

tbody tr:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

tbody tr.active-row {
    opacity: 1;
    filter: grayscale(0);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

tr.active-row td {
    color: #fff;
    text-shadow: 0 0 8px currentColor;
}

tr.winter.active-row {
    color: var(--season-winter);
    box-shadow: inset 4px 0 15px rgba(0, 242, 255, 0.25);
}

tr.spring.active-row {
    color: var(--season-spring);
    box-shadow: inset 4px 0 15px rgba(57, 255, 20, 0.25);
}

tr.summer.active-row {
    color: var(--season-summer);
    box-shadow: inset 4px 0 15px rgba(255, 251, 0, 0.25);
}

tr.autumn.active-row {
    color: var(--season-autumn);
    box-shadow: inset 4px 0 15px rgba(255, 102, 0, 0.25);
}

tr.day-row.active-row {
    color: var(--ui-accent);
    box-shadow: inset 4px 0 15px rgba(189, 0, 255, 0.25);
}

tr.weekend {
    color: #ff9999;
}

tr.weekend.active-row {
    color: var(--weekend-color) !important;
    box-shadow: inset 4px 0 15px rgba(255, 51, 51, 0.4);
    text-shadow: 0 0 12px var(--weekend-color);
}

td.season-indicator {
    width: 4px;
    padding: 0;
}

.winter .season-indicator {
    background-color: var(--season-winter);
    box-shadow: 0 0 8px var(--season-winter);
}

.spring .season-indicator {
    background-color: var(--season-spring);
    box-shadow: 0 0 8px var(--season-spring);
}

.summer .season-indicator {
    background-color: var(--season-summer);
    box-shadow: 0 0 8px var(--season-summer);
}

.autumn .season-indicator {
    background-color: var(--season-autumn);
    box-shadow: 0 0 8px var(--season-autumn);
}

td.row-number {
    font-family: "JetBrains Mono", monospace;
    opacity: 0.7;
    text-align: center;
    font-size: 0.9rem;
}

tr.active-row td.row-number {
    opacity: 1;
    font-weight: bold;
}

.progress-section {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.progress-section:hover {
    transform: translateY(-2px);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 2px;
}

.progress-track {
    position: relative;
    height: 10px;
    width: 100%;
    background: #111;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    border: 1px solid #444;
}

.p-segment {
    height: 100%;
    opacity: 0.3;
    border-right: 1px solid rgba(0, 0, 0, 0.8);
}

.p-segment:last-child {
    border-right: none;
}

.p-segment.winter-start {
    background: var(--season-winter);
    flex-basis: 21.64%;
}

.p-segment.spring {
    background: var(--season-spring);
    flex-basis: 25.48%;
}

.p-segment.summer {
    background: var(--season-summer);
    flex-basis: 25.48%;
}

.p-segment.autumn {
    background: var(--season-autumn);
    flex-basis: 24.38%;
}

.p-segment.winter-end {
    background: var(--season-winter);
    flex-basis: 3.02%;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: #fff;
    opacity: 1;
    box-shadow: 0 0 15px #fff, 0 0 30px #fff;
    transition: width 1s linear;
    z-index: 10;
}

.cursor-head {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    z-index: 11;
}

.season-labels {
    display: flex;
    width: 100%;
    font-family: "Orbitron", sans-serif;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    text-align: center;
    margin-top: 5px;
}

.season-label {
    opacity: 0.6;
    transition: all 0.3s;
    border-right: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}

.season-label:first-child {
    border-left: 1px solid #555;
}

.season-label:last-child {
    border-right: 1px solid #555;
}

.season-label.active {
    opacity: 1;
    font-weight: bold;
    text-shadow: 0 0 15px currentColor;
    background: rgba(255, 255, 255, 0.08);
    border-color: currentColor;
}

.season-label.winter,
.season-label.winter-end {
    color: var(--season-winter);
}

.season-label.spring {
    color: var(--season-spring);
}

.season-label.summer {
    color: var(--season-summer);
}

.season-label.autumn {
    color: var(--season-autumn);
}

.w-winter-start {
    flex-basis: 21.64%;
}

.w-spring {
    flex-basis: 25.48%;
}

.w-summer {
    flex-basis: 25.48%;
}

.w-autumn {
    flex-basis: 24.38%;
}

.w-winter-end {
    flex-basis: 3.02%;
}


/* --- DETAYLI MODAL EKRANI --- */
.detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.detail-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.detail-container {
    width: 95%;
    max-width: 1400px;
    padding: 2rem;
    border: 1px solid var(--ui-accent);
    background: rgba(15, 15, 15, 0.95);
    position: relative;
    box-shadow: 0 0 60px rgba(189, 0, 255, 0.15);
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 60;
}

.close-btn:hover {
    color: var(--ui-accent);
    text-shadow: 0 0 10px var(--ui-accent);
}

/* YENİ YAPILANDIRMA: Gruplar */
.timeline-wrapper {
    position: relative;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 0;
}

#temperature-gradient {
    width: 100%;
    height: 10px;
    margin-top: 8px;
    opacity: 0.75;
    border-radius: 0;
    filter: blur(1.5px);
    background: linear-gradient(90deg,
            hsl(220, 90%, 65%) 0%,
            hsl(240, 100%, 60%) 10%,
            hsl(180, 80%, 65%) 25%,
            hsl(60, 90%, 60%) 42%,
            hsl(0, 100%, 60%) 58%,
            hsl(30, 90%, 60%) 75%,
            hsl(180, 80%, 65%) 90%,
            hsl(220, 90%, 65%) 100%);
}

/* DETAIL TRACK OVERRIDES */
.detail-track-style {
    overflow: visible !important;
    height: 24px;
    border: 2px solid #555;
    z-index: 10;
}

/* Olay İşaretçileri */
.event-marker {
    position: absolute;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s;
    z-index: 30;
    pointer-events: none;
}

.detail-overlay.active .event-marker {
    pointer-events: auto;
}

.event-marker:hover {
    z-index: 40;
    filter: brightness(1.2);
    scale: 1.05;
}

.event-line {
    width: 1px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    margin-bottom: 5px;
}

.event-icon-box {
    background: #050505;
    border: 1px solid #666;
    padding: 4px 8px;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 1);
    font-family: "JetBrains Mono";
}

.event-icon-box i {
    font-size: 0.9rem;
}

.event-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin-top: 2px;
    box-shadow: 0 0 5px currentColor;
}

/* AYLAR SATIRI */
.month-labels {
    display: flex;
    width: 100%;
    margin-top: 5px;
    border-top: 1px solid #333;
    padding-bottom: 0;
}

.month-label {
    flex: 1;
    text-align: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: #555;
    padding-top: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.month-label:last-child {
    border-right: none;
}

.month-label.active {
    color: #fff;
    text-shadow: 0 0 8px #fff;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
}

/* Okul Tatil Bölümü */
.school-section {
    width: 100%;
    border-top: 1px solid #333;
    padding-top: 0.5rem;
    position: relative;
    margin-top: 0.5rem;
    transition: opacity 0.3s;
}

.school-header {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.school-track-container {
    position: relative;
    width: 100%;
    height: 40px;
}

.school-bar {
    position: absolute;
    top: 12px;
    height: 16px;
    border-radius: 0;
    opacity: 0.85;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}

.school-bar:hover {
    opacity: 1;
    height: 20px;
    z-index: 10;
    filter: brightness(1.2);
}

.school-tooltip {
    position: absolute;
    top: -24px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    font-family: "JetBrains Mono";
    text-shadow: 0 0 4px #000;
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.9);
    padding: 3px 6px;
    border-radius: 0;
    border: 1px solid #444;
    z-index: 50;
    font-weight: normal;
}

.school-bar:hover .school-tooltip {
    display: flex;
}

/* Meyve Bölümü */
.fruit-section {
    width: 100%;
    border-top: 1px solid #333;
    padding-top: 0.5rem;
    position: relative;
    margin-top: 0.5rem;
    transition: opacity 0.3s;
}

.fruit-header {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.fruit-track-container {
    position: relative;
    width: 100%;
    height: 250px;
}

.fruit-bar {
    position: absolute;
    height: 6px;
    border-radius: 0;
    opacity: 0.7;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.fruit-bar:hover {
    opacity: 1;
    height: 10px;
    z-index: 10;
    filter: brightness(1.3);
}

.fruit-tooltip {
    position: absolute;
    top: -24px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    font-family: "JetBrains Mono";
    text-shadow: 0 0 4px #000;
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.9);
    padding: 3px 6px;
    border-radius: 0;
    border: 1px solid #444;
    z-index: 50;
}

.fruit-bar:hover .fruit-tooltip {
    display: flex;
}

.bar-content {
    padding: 0 4px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
}

/* --- ÇİZGİ KONTEYNERİ (Line Layer) --- */
.line-layer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    pointer-events: none;
    z-index: 45;
}

/* --- GÜNCELLENMİŞ İMLEÇ (LAZER) ÇİZGİSİ --- */
#detail-current-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 1px dashed rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    transform: translateX(-50%);
}

/* BÜYÜK YÜZDE TEXT STYLE */
.big-percent-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(189, 0, 255, 0.4);
}