﻿/* ===========================
   Footer Components
   =========================== */

/* Wrapper για το footer */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Πάνω ζώνη footer με grid */
.footer-top {
  display: grid;
  grid-template-columns: 220px 1fr 250px;
  align-items: center;
  background-color: #006994;
  padding: 10px 0;
  gap: 20px;
}

/* Αριστερά: Policy Links */
.footer-left {
  width: 220px;
  text-align: left;
  margin: 0;
  padding: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.footer-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-left li {
  margin: 0 0 4px 0;
}

.footer-left a {
  display: block;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-left a:hover {
  color: #ffd700;
}

/* Carousel συνεργατών στο κέντρο */
.footer-center {
  text-align: center;
}

/* ===========================
   Footer Carousel (Smooth Infinite Loop)
=========================== */
.footer-carousel {
    position: relative;
    width: 100%;
    height: 50px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: fit-content;
}

.carousel-group {
    display: flex;
    align-items: center;
}

.carousel-group img {
    height: 50px;
    width: auto;
    margin-right: 40px;
}

/* Social links δεξιά */
.footer-right {
  width: 250px;
  margin: 0;
  padding: 0;
  justify-self: end;
}

.footer-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.footer-right a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: #ffd700;
}

/* Κάτω ζώνη με scroll-text */
.footer-bottom {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #e65c00, #ff7a1a, #e65c00) !important;
    padding: 10px 0;
}

.footer-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: marquee-scroll 22s linear infinite;
}

.marquee-track span {
    font-size: clamp(10px, 1vw, 16px);
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    padding-right: 60px; /* απόσταση μεταξύ των loops */
    letter-spacing: 2px;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===========================
   Language Dropdown (Navbar)
   =========================== */

.lang-dropdown {
    position: absolute;
    right: 50px;
    top: 20px;
    user-select: none;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.lang-btn .arrow {
    font-size: 10px;
    margin-left: 4px;
}

.flag-icon svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 5px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 80px;
    z-index: 9999;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.lang-menu a:hover {
    background: #333;
    color: #ffd700;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 10px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    text-align: center;
    justify-self: center;
  }

  .footer-carousel {
    height: 40px;
  }

  .carousel-track img {
    margin: 0 6px;
    max-height: 30px;
  }

  .footer-text {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right ul {
    justify-content: center;
  }

  .footer-carousel {
    height: 36px;
  }

  .carousel-track img {
    max-height: 28px;
    margin: 0 6px;
  }

  .footer-text {
    font-size: 12px;
  }
}

/* ===========================
   Contact Form
   =========================== */
.contact-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-container label {
  font-weight: bold;
}

.contact-container input,
.contact-container textarea,
.contact-container button {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

/* ===========================
   Info Box κάτω από το carousel
   =========================== */
.info-box {
  background-color: #fff;
  color: #004080;
  border-radius: 12px;
  padding: 20px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  line-height: 1.5;
}

.info-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-box h2 {
  margin-top: 0;
  font-size: 1.6em;
  color: #003366;
}

.info-box h3 {
  margin-top: 10px;
  font-size: 1.3em;
  color: #0055aa;
}

/* ===========================
   Πλαίσιο Νέα / Events
   =========================== */
.two-columns {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.two-columns .column {
  flex: 1;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.notam-list {
  list-style-type: disc;
  padding-left: 20px;
  color: #003366;
  margin: 0;
}

.notam-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .two-columns {
    flex-direction: column;
  }
}

/* Τίτλοι για πλαίσιο Νέα / Events */
.two-columns h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4em;
  color: #003366; /* σκούρο μπλε */
  border-bottom: 2px solid #ccc; /* προαιρετικά, για να ξεχωρίζει */
  padding-bottom: 5px;
}

/* ===========================
   Χάρτης
   =========================== */
.map-section {
  margin-top: 40px;
}

#map {
  width: 100%;
  height: 400px;
  border: 2px solid #ccc;
  border-radius: 8px;
}
/* Popup Window */
.popup {
  display: none; /* αρχικά κρυφό */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.popup-content {
  background-color: #fff;
  color: #000;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup.show .popup-content {
  opacity: 1;
  transform: scale(1);
}

#notam-details {
  min-height: 50px;
}
.popup-close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Login Page Styling */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: #f4f6f9;
}

.login-card {
  background: #fff;
  padding: 40px 35px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 25px;
  font-size: 24px;
  color: #003366;
  font-weight: 600;
}

.login-card label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.login-card input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.2s;
}

.login-card input:focus {
  border-color: #0078ff;
  box-shadow: 0 0 0 3px rgba(0,120,255,0.15);
  outline: none;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-login:hover {
  background: #005fcc;
}

.login-error {
  background: #ffe0e0;
  color: #a00;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 500;
}

.forgot-password {
  margin-top: 15px;
  text-align: center;
}

.forgot-password a {
  color: #0078ff;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.table-header th {
    color: #004aad;
    font-weight: bold;
}

/* Modern admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.admin-table th {
    background: #f5f7fa;
    color: #004aad;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e6ed;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #e6e6e6;
}

/* Hover row effect */
.admin-table tr:hover td {
    background: #f0f6ff;
}

/* Buttons */
.btn-approve,
.btn-reject {
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-approve {
    background: #0a8a0a;
    color: #fff;
}

.btn-approve:hover {
    background: #0f6f0f;
}

.btn-reject {
    background: #d62828;
    color: #fff;
}

.btn-reject:hover {
    background: #b71c1c;
}

.admin-table td { color: #003366; /* airline navy blue */ }

/* ===== Pilot profile (airline crew style) ===== */

.profile-wrapper {
    max-width: 1300px;
    margin: 40px auto;
}

.profile-header {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    align-items: center;
    margin-bottom: 24px;
}

.profile-photo {
    width: 160px;
    height: 210px; /* περίπου 3:4 αναλογία */
    background: #d9e2f3;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555;
    text-align: center;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main-info {
    flex: 1;
}

.profile-main-info h1 {
    margin: 0 0 6px 0;
    font-size: 26px;
    color: #003366;
}

.profile-main-info .callsign {
    font-size: 18px;
    font-weight: 600;
    color: #004aad;
    margin-bottom: 8px;
}

.profile-main-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.profile-main-meta span {
    margin-right: 16px;
}

.profile-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.badge-rank {
    background: #004aad;
    color: #fff;
}

.badge-status-active {
    background: #0a8a0a;
    color: #fff;
}
.badge-status-pending {
    background: #e6a700;
    color: #fff;
}
.badge-status-rejected {
    background: #b71c1c;
    color: #fff;
}

/* Cards για ενότητες προφίλ */

.profile-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.profile-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.profile-card h2 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #003366;
    border-bottom: 1px solid #e0e6ed;
    padding-bottom: 6px;
}

.profile-field {
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-field-label {
    font-weight: 600;
    color: #555;
    min-width: 80px;
}

.profile-field-icon {
    width: 18px;
    text-align: center;
    color: #004aad;
}

/* Bio / background */
.profile-bio {
    margin-top: 6px;
    font-size: 14px;
    color: #444;
    white-space: pre-line;
}

/* Buttons (π.χ. Edit Profile, Change Password) */

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-profile {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: 0.2s ease;
}

.btn-edit {
    background: #004aad;
    color: #fff;
}

.btn-edit:hover {
    background: #00337a;
}

.btn-password {
    background: #f1f3f7;
    color: #333;
}

.btn-password:hover {
    background: #e0e4ec;
}

/* Admin-only actions στο admin_view_pilot */
.profile-admin-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* ===========================
   NOTAM POPUP COMPONENT
=========================== */

.notam-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.notam-popup-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.notam-popup-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    transform: translate(-50%, -50%);
    padding: 20px;
    max-height: 80%;
    overflow-y: auto;
}

.notam-popup-close {
    float: right;
    font-size: 26px;
    cursor: pointer;
}

.popup-header h2 {
    margin-top: 0;
}

.popup-meta {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.popup-body {
    margin-top: 15px;
}
/* ===== NOTAM Delete Confirm Modal (Aviation Blue Theme) ===== */

.confirm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}

.confirm-modal-content {
    background: #0a3d62; /* Aviation Blue */
    color: #ffffff;      /* White text */
    width: 420px;
    margin: 12% auto;
    padding: 28px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
    animation: fadeIn 0.25s ease-out;
}

.confirm-modal-content h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.confirm-modal-content p {
    font-size: 16px;
    margin: 15px 0 25px 0;
    color: #dfe6e9;
}

.confirm-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-cancel, .btn-ok {
    flex: 1;
    padding: 12px 0;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.btn-cancel {
    background: #b2bec3;
    color: #2d3436;
}

.btn-ok {
    background: #e84118; /* Aviation Red */
    color: #ffffff;
}

.btn-ok:hover {
    background: #c23616;
}

.btn-cancel:hover {
    background: #dfe6e9;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
/* ===========================
   Privacy Page Styling
   =========================== */

.privacy {
    max-width: 900px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #003366;
    line-height: 1.6;
}

.privacy h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #003366;
    text-align: center;
}

.privacy h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #004aad;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 6px;
}

.privacy p,
.privacy li {
    font-size: 1.05em;
    margin-bottom: 12px;
}

.privacy ul {
    padding-left: 20px;
}
/* ===========================
   Schedules: Desktop vs Mobile view
   =========================== */

/* Default: desktop - δείχνουμε πίνακα, κρύβουμε cards */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

#mobileCards {
    display: none;
}

/* Mobile: κρύβουμε πίνακα, δείχνουμε cards */
@media (max-width: 768px) {
    .schedule-table {
        display: none;
    }

    #mobileCards {
        display: block;
        margin-top: 15px;
    }
}
.footer-credit {
    margin-top: 28px; /* extra κενό από τα media */
    font-size: 14px;
    text-align: right;
    color: #e0e0e0;
    opacity: 0.9;
    font-style: italic;
    letter-spacing: 0.6px;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

/* Pilot wings icon */
.wings-icon {
    margin-right: 15px; /* απομακρύνει το icon από το κείμενο */
    font-size: 16px;
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
    position: relative;
}

/* Left wing */
.wings-icon::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 2px;
    background: linear-gradient(to left, #ffd700, transparent);
    border-radius: 2px;
}

/* Right wing */
.wings-icon::after {
    content: "";
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 2px;
    background: linear-gradient(to right, #ffd700, transparent);
    border-radius: 2px;
}

/* Highlight on hover of the whole footer-right */
.footer-right:hover .footer-credit span {
    color: #ffe680;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}
.flight-hours-badge-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 10px;
}

.flight-hours-badge-img {
    width: 90px;
    height: auto;
    border-radius: 6px;
}

.flight-hours-badge-info {
    font-size: 16px;
    color: #333;
}
.flight-hours-badge-box {
    transition: 0.25s ease;
    border-radius: 10px;
}

.flight-hours-badge-img {
    transition: transform 0.25s ease;
}

.flight-hours-badge-box:hover {
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
    transform: translateY(-3px);
}

.flight-hours-badge-box:hover .flight-hours-badge-img {
    transform: scale(1.10);
}
.badge-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.4s ease forwards;
}

.badge-popup-inner {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: popupScale 0.35s ease forwards;
}

.badge-popup-inner img {
    width: 120px;
    margin: 15px 0;
}

.badge-popup-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

#badge-popup-close {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

#badge-popup-close:hover {
    background: #0056b3;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes popupScale {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
/* ===========================
   LIVERY CARDS
=========================== */

.livery-card {
    background: #2f2f2f; /* όμορφο, ουδέτερο γκρι */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding: 10px;
}

.livery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.livery-card img {
    width: 100%;
    display: block;
}

.livery-card h3 {
    margin: 12px 0;
    font-size: 1.1rem;
    color: #f5f5f5; /* φωτεινό για σωστή αντίθεση */
}

.liveries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 κάρτες στη σειρά */
    gap: 25px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .liveries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .liveries-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ===========================
   IMAGE MODAL
=========================== */

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
}

.image-modal img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

