:root {
    --bg-color: #050505;
    
    /* Iron Man Primary Colors */
    --jarvis-blue: #00e5ff;
    --jarvis-blue-glow: rgba(0, 229, 255, 0.6);
    --jarvis-blue-dark: rgba(0, 229, 255, 0.1);
    
    --jarvis-orange: #ff9900;
    --jarvis-orange-glow: rgba(255, 153, 0, 0.6);
    
    --text-primary: #e0fbfc;
    --text-muted: #6b8e9b;
    
    --panel-bg: rgba(0, 10, 20, 0.3);
    
    --success-color: #00ff88;
    --danger-color: #ff003c;
    --warning-color: #ffb000;
    
    /* For calendar dots */
    --cal-level-0: rgba(0, 229, 255, 0.05);
    --cal-level-1: rgba(0, 229, 255, 0.3);
    --cal-level-2: rgba(0, 229, 255, 0.6);
    --cal-level-3: rgba(0, 229, 255, 0.8);
    --cal-level-4: rgba(0, 229, 255, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden; /* Fullscreen desktop feel */
    width: 100vw;
    height: 100vh;
}

/* Background Effects */
.hud-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hud-bg-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 229, 255, 0.03) 3px,
        rgba(0, 229, 255, 0.03) 3px
    );
    pointer-events: none;
}

/* Main Wrapper - 3 Columns */
.ironman-hud-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr 350px;
    width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* =======================================================
   LEFT COLUMN
======================================================= */
.hud-col-left {
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.shield-logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}
.shield-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--jarvis-orange) 0%, #331a00 100%);
    border: 2px solid var(--jarvis-orange);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #000;
    box-shadow: 0 0 15px var(--jarvis-orange-glow);
}
.shield-text {
    font-family: 'Orbitron', sans-serif;
    color: var(--jarvis-orange);
}
.shield-text strong { font-size: 1.1rem; letter-spacing: 1px; }
.shield-text span { font-size: 0.8rem; color: #aaa; }
.shield-text small { font-size: 0.6rem; color: #666; font-family: 'Rajdhani', sans-serif; }

.bridge-control-deco {
    position: absolute;
    left: 20px;
    top: 150px;
    bottom: 200px;
    width: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.bridge-line {
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(to bottom, var(--jarvis-blue) 0, var(--jarvis-blue) 10px, transparent 10px, transparent 20px);
    opacity: 0.3;
}
.bridge-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 10px;
    letter-spacing: 3px;
}

.skewed-menu {
    margin-left: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
}
.skew-btn {
    position: relative;
    display: block;
    width: 200px;
    height: 35px;
    text-decoration: none;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 35px;
    padding-left: 20px;
    letter-spacing: 1px;
}
.skew-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #333 0%, #111 100%);
    border-left: 4px solid var(--jarvis-blue);
    transform: skewX(-20deg);
    z-index: -1;
    transition: all 0.3s ease;
}
.skew-btn:hover .skew-bg, .skew-btn.active .skew-bg {
    background: linear-gradient(90deg, var(--jarvis-orange) 0%, #331a00 100%);
    border-left-color: #fff;
    box-shadow: 0 0 15px var(--jarvis-orange-glow);
}

.hologram-stats-area {
    margin-left: 40px;
    position: relative;
    margin-top: auto;
    margin-bottom: auto;
}
.holo-beam {
    position: absolute;
    left: -20px;
    top: -20px;
    width: 200px;
    height: 200px;
    background: conic-gradient(from 180deg at 0% 100%, transparent 0deg, var(--jarvis-blue-dark) 45deg, transparent 90deg);
    pointer-events: none;
    z-index: -1;
}
.holo-content {
    background: rgba(0, 20, 30, 0.6);
    border-left: 2px solid var(--jarvis-blue);
    padding: 15px;
    box-shadow: inset 0 0 20px var(--jarvis-blue-dark);
}
.holo-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--jarvis-blue);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.holo-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}
.holo-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    padding-bottom: 4px;
}
.holo-row.header {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
}
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }

.left-radar-widget {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,0.05) 0%, rgba(0,0,0,0.5) 100%);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1), inset 0 0 20px rgba(0, 229, 255, 0.2);
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.radar-crosshair {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.radar-crosshair::before, .radar-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(0, 229, 255, 0.3);
}
.radar-crosshair::before { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); }
.radar-crosshair::after { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }

.radar-ring-1 {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 229, 255, 0.5);
    animation: spin 20s linear infinite;
}
.radar-ring-2 {
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    border: 2px dotted rgba(255, 153, 0, 0.5);
    animation: spin-reverse 15s linear infinite;
}
.radar-ring-3 {
    position: absolute;
    inset: 40px;
    border-radius: 50%;
    border-top: 3px solid var(--jarvis-blue);
    border-bottom: 3px solid transparent;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    animation: spin 4s ease-in-out infinite alternate;
}
.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, rgba(0, 229, 255, 0.4) 100%);
    animation: spin 3s linear infinite;
}
.radar-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 5px var(--jarvis-blue);
    z-index: 5;
    background: rgba(0, 10, 15, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(0,229,255,0.3);
}
.radar-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(2px 2px at 30% 40%, var(--jarvis-orange) 50%, transparent 100%),
                      radial-gradient(2px 2px at 70% 60%, var(--jarvis-blue) 50%, transparent 100%);
    background-repeat: no-repeat;
    animation: blink 2s infinite;
}

/* =======================================================
   CENTER COLUMN
======================================================= */
.hud-col-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ironman-bust-placeholder {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    /* Tasarımcınız buraya tel kafes iron man png'si koyabilir */
    background: url('../images/ironman-bg.png') center bottom/contain no-repeat;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.center-top-text {
    position: absolute;
    top: 50px;
    text-align: center;
    z-index: 2;
}
.center-top-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 5px;
    transition: opacity 0.3s ease;
}
.center-top-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.center-side-menu {
    position: absolute;
    left: 50px;
    top: 200px;
    list-style: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 2;
    text-align: right;
    z-index: 2;
}

.chest-arc-reactor {
    position: absolute;
    bottom: 280px; /* Adjust based on bust image */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    cursor: grab;
    transition: filter 0.3s;
}
.chest-arc-reactor:hover {
    filter: drop-shadow(0 0 10px var(--jarvis-blue));
}
.chest-arc-reactor:active, .chest-arc-reactor.is-dragging {
    cursor: grabbing;
    filter: drop-shadow(0 0 20px var(--jarvis-blue));
}

/* Arc Reactor from original Jarvis */
.arc-reactor {
    width: 150px;
    height: 150px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}
.ring-outer {
    width: 150px;
    height: 150px;
    border-top: 3px solid var(--jarvis-blue);
    border-bottom: 3px solid var(--jarvis-blue);
    box-shadow: 0 0 20px var(--jarvis-blue-glow), inset 0 0 10px var(--jarvis-blue-glow);
    animation: spin 8s linear infinite;
}
.ring-middle {
    width: 120px;
    height: 120px;
    border-left: 2px dashed #fff;
    border-right: 2px dashed #fff;
    animation: spin-reverse 5s linear infinite;
    opacity: 0.7;
}
.ring-inner {
    width: 90px;
    height: 90px;
    border: 2px dotted var(--jarvis-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spin 12s linear infinite;
}
.reactor-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, var(--jarvis-blue) 40%, #000000 100%);
    box-shadow: 0 0 30px 10px var(--jarvis-blue-glow);
    animation: pulseCore 3s ease-in-out infinite alternate;
}

.center-bottom-status {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 5;
}
.center-bottom-status p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
}
.center-bottom-status strong {
    color: var(--jarvis-blue);
    font-family: 'Orbitron', sans-serif;
}

.timeline-ticker-wrapper {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(0, 229, 255, 0.05);
    border-top: 1px solid var(--jarvis-blue);
    border-bottom: 1px solid var(--jarvis-blue);
    padding: 5px 0;
}
.timeline-ticker {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
}
.ticker-item {
    display: inline-block;
    padding: 0 30px;
    color: var(--jarvis-orange);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
}
.ticker-item span { color: #fff; }
.ticker-item small { color: var(--text-muted); }


/* =======================================================
   RIGHT COLUMN
======================================================= */
.hud-col-right {
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.date-time-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    margin-top: 20px;
}
.date-large {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.date-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.date-details #monthText {
    font-family: 'Orbitron', sans-serif;
    color: var(--jarvis-orange);
    font-size: 1rem;
    font-weight: 700;
}
.date-details #dayText {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.monitor-title {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    margin-bottom: 15px;
    width: 250px;
    text-align: right;
}

.system-monitor {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.progress-bar-group {
    width: 250px;
    margin-bottom: 15px;
}
.prog-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.prog-label span:last-child {
    color: var(--jarvis-orange);
    font-family: 'Orbitron', sans-serif;
}
.prog-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}
.prog-fill {
    height: 100%;
    background: var(--jarvis-orange);
    box-shadow: 0 0 10px var(--jarvis-orange-glow);
    transition: width 1s ease-out;
}

.disk-monitor {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.disk-list {
    list-style: none;
    width: 250px;
    text-align: right;
}
.disk-list li {
    font-size: 0.85rem;
    color: var(--jarvis-blue);
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.2);
}

.standing-armor-placeholder {
    position: absolute;
    right: 250px;
    top: 200px;
    width: 150px;
    height: 400px;
    background: url('../images/armor-wireframe.png') center/contain no-repeat;
    opacity: 0.4;
    pointer-events: none;
}

.right-dial-widget {
    margin-top: auto;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 153, 0, 0.2);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.right-dial-widget:hover {
    border-color: rgba(255, 153, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
    transform: scale(1.05);
}
.right-dial-widget.expanded {
    width: 650px;
    height: 180px;
    border-radius: 10px;
    background: rgba(0, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    margin-right: 0;
    margin-bottom: 20px;
    transform: scale(1) translateX(0); /* Ignore hover scale when expanded */
    z-index: 100;
}
.right-dial-widget.expanded .calendar-wrapper {
    width: 95%;
    height: 90%;
    overflow-x: auto;
    justify-content: flex-start;
}
.calendar-wrapper {
    width: 80%;
    height: 80%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.calendar-graph {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
}
.calendar-day {
    width: 8px;
    height: 8px;
    background-color: var(--cal-level-0);
    border: 1px solid rgba(0,0,0,0.5);
}
.calendar-day[data-level="0"] { background-color: var(--cal-level-0); }
.calendar-day[data-level="1"] { background-color: var(--cal-level-1); }
.calendar-day[data-level="2"] { background-color: var(--cal-level-2); }
.calendar-day[data-level="3"] { background-color: var(--cal-level-3); }
.calendar-day[data-level="4"] { background-color: var(--cal-level-4); }


/* Loading & Animations */
.loading-state {
    padding: 10px;
    color: var(--jarvis-blue);
    font-family: 'Orbitron', sans-serif;
    animation: blink 1s infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 100% { transform: rotate(-360deg); } }
@keyframes pulseCore { 
    0% { transform: scale(0.95); opacity: 0.8; } 
    100% { transform: scale(1.05); opacity: 1; } 
}
@keyframes blink { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.2; } 
}
@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Global Tooltip */
.global-tooltip {
    background-color: rgba(0, 10, 20, 0.95);
    color: var(--jarvis-blue);
    border: 1px solid var(--jarvis-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    text-align: center;
    padding: 8px 12px;
    position: absolute;
    z-index: 99999;
    white-space: nowrap;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
    transform: translateX(-50%);
    visibility: hidden;
}
.global-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* Fullscreen Button */
.fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(0, 10, 20, 0.5);
    border: 1px solid var(--jarvis-blue);
    color: var(--jarvis-blue);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--jarvis-blue-dark);
    backdrop-filter: blur(5px);
}
.fullscreen-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 15px var(--jarvis-blue-glow);
    transform: scale(1.1);
}

/* Hologram Panels */
.hologram-panels-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 700px; /* Genişletildi ki tüm yıl takvimi sığsın */
    height: 450px;
    background: rgba(0, 10, 15, 0.85);
    border: 1px solid var(--jarvis-blue);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.1);
    z-index: 10;
    backdrop-filter: blur(10px);
    border-radius: 5px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.hologram-panels-wrapper::before, .hologram-panels-wrapper::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--jarvis-blue);
}
.hologram-panels-wrapper::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hologram-panels-wrapper::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.holo-panel {
    display: none;
    flex-direction: column;
    height: 100%;
    animation: fadeIn 0.4s ease forwards;
    width: 100%;
}
.holo-panel.active {
    display: flex;
}

.holo-panel h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--jarvis-orange);
    text-align: center;
    border-bottom: 1px dashed rgba(255, 153, 0, 0.5);
    padding-bottom: 10px;
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-size: 1.1rem;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    font-size: 0.9rem;
    padding-right: 10px;
    width: 100%;
}
.panel-content::-webkit-scrollbar { width: 4px; height: 4px; }
.panel-content::-webkit-scrollbar-track { background: transparent; }
.panel-content::-webkit-scrollbar-thumb { background: var(--jarvis-blue); }

.big-calendar-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
}

.big-repo-item {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron', sans-serif;
    color: var(--jarvis-blue);
}
.big-repo-item strong { color: #fff; letter-spacing: 1px; }

.big-activity-item {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--jarvis-orange);
    font-family: 'Rajdhani', sans-serif;
}
.big-activity-item .time { color: var(--jarvis-blue); font-size: 0.85rem; font-family: 'Orbitron', sans-serif; }
.big-activity-item .details { color: #ccc; margin-top: 4px; font-size: 0.95rem; }

.stat-highlight {
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 30px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}
.setting-item span:first-child { color: var(--text-muted); }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}