/* --- RESET & BASIC STYLES --- */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Rajdhani', sans-serif;
}
body { background-color: #0b0b0e; color: #ffffff; min-height: 100vh; overflow-x: hidden; }
.background-grid {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 70% 30%, rgba(255, 0, 60, 0.08) 0%, transparent 60%),
              linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
              linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px; z-index: -1;
}

/* --- NAVBAR --- */
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 50px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 11, 14, 0.9); backdrop-filter: blur(10px);
}
.logo { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 1.4rem; letter-spacing: 2px; }
.square-icon { color: #ff003c; margin-right: 5px; }
.logo small { display: block; font-size: 0.6rem; color: #666; letter-spacing: 3px; }
.navbar nav a { color: #888; text-decoration: none; margin: 0 15px; font-weight: 700; font-size: 0.9rem; }
.navbar nav a.active, .navbar nav a:hover { color: #ffffff; border-bottom: 2px solid #ff003c; padding-bottom: 5px; }
.system-status { font-size: 0.8rem; color: #888; font-family: 'Orbitron', sans-serif; }
.status-dot { display: inline-block; width: 7px; height: 7px; background-color: #ff003c; border-radius: 50%; margin-right: 5px; box-shadow: 0 0 8px #ff003c; }

/* --- MAIN CONTAINER --- */
.container { max-width: 1050px; margin: 40px auto; padding: 0 20px; }
.timeline-header { margin-bottom: 30px; }
.timeline-header .tag { color: #ff003c; font-family: 'Orbitron', sans-serif; font-size: 0.8rem; }
.timeline-header h1 { font-family: 'Orbitron', sans-serif; font-size: 2.8rem; font-weight: 900; }
.timeline-header h1 span { color: #ff003c; }
.subtitle { color: #777; font-size: 1.1rem; }

/* --- TIMELINE CARDS --- */
.timeline-list { display: flex; flex-direction: column; gap: 20px; }

.timeline-card {
  display: grid;
  grid-template-columns: 180px 1fr 260px;
  background: rgba(22, 22, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #ff003c;
  border-radius: 4px; overflow: hidden; transition: transform 0.3s;
}
.timeline-card:hover { transform: translateX(5px); border-color: rgba(255, 0, 60, 0.5); }

/* --- Αριστερά: Server Box (Διορθωμένο για το Status) --- */
.server-box {
  background: rgba(15, 15, 20, 0.9); padding: 15px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* ΔΙΟΡΘΩΣΗ: Στυλ Status Banner (Μεταφέρθηκε αριστερά) */
.server-status-banner {
  font-family: 'Orbitron', sans-serif; font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
  margin-bottom: 8px; /* Χώρος κάτω από το banner */
  text-align: center; width: 100%;
}
.server-status-banner.closed { color: #ff003c; text-shadow: 0 0 8px #ff003c; }
.server-status-banner.playing { color: #00ff88; text-shadow: 0 0 8px #00ff88; }
.server-status-banner.abandoned { color: #888; }

.server-img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #ff003c; margin-bottom: 5px; }
.server-name { font-family: 'Orbitron', sans-serif; font-size: 0.8rem; font-weight: 700; color: #ff003c; text-align: center; }
.server-years { font-family: 'Orbitron', sans-serif; font-size: 0.75rem; color: #ffffff; font-weight: 800; margin-top: 2px; }

/* Μέση: Info Box */
.info-box { padding: 20px 25px; display: flex; flex-direction: column; justify-content: center; }
.character-name { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 800; color: #ffffff; }
.job-title { color: #aaa; font-size: 0.95rem; font-weight: 600; margin-top: 5px; }

/* --- Δεξιά: Right Box (Χωρίς το Status Banner πια) --- */
.right-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 15px 20px; border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 20, 0.4); gap: 15px;
}

.media-icons { display: flex; align-items: center; gap: 12px; }

/* Τέλεια Κυκλικά Icons */
.icon-img {
  width: 50px; height: 50px; object-fit: cover; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2); transition: 0.3s;
}
.avatar-img { border-color: #ff003c; box-shadow: 0 0 10px rgba(255, 0, 60, 0.5); }
.job-icon { border-color: #aaaaaa; }
.icon-img:hover { transform: scale(1.1); box-shadow: 0 0 15px #ff003c; }

.btn-learn-more {
  background: transparent; color: #ffffff; border: 1px solid #ff003c;
  padding: 8px 15px; font-family: 'Orbitron', sans-serif; font-size: 0.75rem; font-weight: 700;
  cursor: pointer; transition: 0.3s; width: 100%;
}
.btn-learn-more:hover { background: #ff003c; box-shadow: 0 0 15px #ff003c; }

/* --- POPUP MODAL STYLES (Layout Χωρίς αλλαγές) --- */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 1000;
  justify-content: center; align-items: center;
}
.modal-content {
  background: #121218; border: 1px solid #ff003c; width: 90%; max-width: 650px;
  padding: 30px; position: relative; box-shadow: 0 0 35px rgba(255, 0, 60, 0.25);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; color: #888; cursor: pointer; }
.close-btn:hover { color: #ff003c; }
.modal-body-layout { display: grid; grid-template-columns: 1fr 180px; gap: 20px; margin-top: 10px; }
.modal-header .tag { color: #ff003c; font-family: 'Orbitron', sans-serif; font-size: 0.75rem; }
.modal-header h2 { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; margin: 5px 0 10px 0; color: #fff; }
.modal-status-row { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.85rem; margin-bottom: 15px; }
.status-badge { padding: 3px 8px; font-family: 'Orbitron', sans-serif; font-size: 0.75rem; border-radius: 3px; }
.status-badge.alive { background: rgba(0, 255, 136, 0.1); color: #00ff88; border: 1px solid #00ff88; }
.status-badge.deceased { background: rgba(255, 0, 60, 0.1); color: #ff003c; border: 1px solid #ff003c; }
.modal-info-grid {
  background: rgba(255, 255, 255, 0.03); padding: 12px; margin-bottom: 15px;
  font-size: 0.95rem; border-left: 2px solid #ff003c; display: flex; flex-direction: column; gap: 6px;
}
.modal-description h3 { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; color: #ff003c; margin-bottom: 6px; }
.modal-description p { color: #ccc; line-height: 1.4; font-size: 0.9rem; }
.modal-media-side { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.modal-avatar-img {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  border: 2px solid #ff003c; box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
}
.modal-job-wrapper { text-align: center; }
.job-tag { display: block; font-family: 'Orbitron', sans-serif; font-size: 0.65rem; color: #ff003c; margin-bottom: 4px; }
.modal-job-badge {
  width: 70px; height: 70px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2); background: #000;
}
.modal-footer { margin-top: 20px; text-align: right; }
.btn-close { background: #ff003c; color: #fff; border: none; padding: 10px 20px; font-family: 'Orbitron', sans-serif; font-weight: 700; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
  .timeline-card { grid-template-columns: 1fr; text-align: center; }
  .server-box, .right-box { border: none; }
  .modal-body-layout { grid-template-columns: 1fr; }
  .modal-media-side { order: -1; }
}

.jt-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    width: fit-content;
    padding: 6px 11px;

    background: linear-gradient(
        135deg,
        #b80000,
        #e00000
    );

    color: #fff;
    text-decoration: none;

    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;

    border: 1px solid rgba(255, 60, 60, 0.8);
    border-radius: 2px;

    overflow: hidden;
    cursor: pointer;

    box-shadow:
        0 0 0 rgba(255, 0, 0, 0),
        inset 0 0 12px rgba(255, 255, 255, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

/* Moving scan line */
.jt-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 60%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );

    transform: skewX(-20deg);
    animation: jt-scan 3s infinite;
}

/* Red glow */
.jt-button::after {
    content: "";
    position: absolute;
    inset: 0;

    border: 1px solid transparent;
    box-shadow: inset 0 0 0 rgba(255, 0, 0, 0);

    transition: 0.25s ease;
}

/* Status dot */
.jt-dot {
    position: relative;
    width: 6px;
    height: 6px;

    background: #ff4a4a;
    border-radius: 50%;

    box-shadow:
        0 0 5px #ff0000,
        0 0 10px rgba(255, 0, 0, 0.8);

    animation: jt-pulse 1.5s infinite;
}

/* Text */
.jt-text {
    position: relative;
    z-index: 2;
}

/* Arrow */
.jt-arrow {
    position: relative;
    z-index: 2;

    font-size: 13px;
    opacity: 0.7;

    transform: translate(0, 0);
    transition: 0.25s ease;
}

/* Hover */
.jt-button:hover {
    background: linear-gradient(
        135deg,
        #e00000,
        #ff1a1a
    );

    transform: translateY(-2px);

    box-shadow:
        0 0 8px rgba(255, 0, 0, 0.45),
        0 0 20px rgba(255, 0, 0, 0.25),
        inset 0 0 15px rgba(255, 255, 255, 0.08);
}

.jt-button:hover .jt-arrow {
    transform: translate(3px, -3px);
    opacity: 1;
}

.jt-button:hover .jt-dot {
    box-shadow:
        0 0 7px #ff0000,
        0 0 15px #ff0000,
        0 0 25px rgba(255, 0, 0, 0.8);
}

/* Scan animation */
@keyframes jt-scan {
    0% {
        left: -120%;
    }

    45%,
    100% {
        left: 150%;
    }
}

/* Dot animation */
@keyframes jt-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.75);
    }
}