/* ==========================================
   1. ΓΕΝΙΚΕΣ ΡΥΘΜΙΣΕΙΣ & DARK THEME
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================
   2. ΠΛΟΗΓΗΣΗ & STICKY TOP BAR (GRID 3 ΤΜΗΜΑΤΩΝ)
   ========================================== */
.ploig {
  background-color: #1e1e1e;
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.top-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #a64193;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left {
  /* Spacer */
}

.nav-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  
}

.ploig a {
  text-decoration: none;
}

.my-button {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid #a64193;
  border-radius: 20px;
  background-color: transparent;
  color: #ffffff;
  transition: all 0.3s ease;
  white-space: nowrap;
   min-width: 150px;
}

.my-button:hover {
  background-color: #a64193;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.6);
  transform: translateY(-1px);
}

.my-button:active {
  transform: translateY(0);
}

.nav-search {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.nav-search input[type="text"] {
  width: 220px;
  padding: 8px 15px;
  font-size: 14px;
  color: #fff;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 20px;
  outline: none;
  transition: all 0.3s ease;
}

.nav-search input[type="text"]:focus {
  border-color: #a64193;
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.5);
  width: 250px;
}

#counter {
  font-size: 13px;
  color: #aaa;
  white-space: nowrap;
  font-weight: 600;
}

#songCount {
  color: #a64193;
  font-weight: bold;
}

/* ==========================================
   3. HEADER & SLOGAN
   ========================================== */
header {
  text-align: center;
  padding: 20px 15px 10px;
  background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
}

#slogan {
  font-size: 22px;
  font-weight: 800;
  color: #a64193;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

/* ==========================================
   4. ΠΙΝΑΚΑΣ ΤΡΑΓΟΥΔΙΩΝ (TABLE)
   ========================================== */
.content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 15px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#stickySentinel {
  height: 1px;
}

#songsTable {
  width: 100%;
  border-collapse: separate; /* το "collapse" σπάει το position:sticky στα th σε iOS Safari */
  border-spacing: 0;
  background-color: #1e1e1e;
  text-align: left;
}

#songsTable th {
  background-color: #282828;
  color: #a64193;
  font-weight: 700;
  padding: 12px 14px;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  border-bottom: 2px solid #a64193;
  transition: background 0.2s, padding 0.15s ease, font-size 0.15s ease;

  /* Sticky πρώτη γραμμή: κολλάει ακριβώς κάτω από το top-nav.
     Το --nav-height ενημερώνεται δυναμικά από το script.js, ώστε να
     δουλεύει σωστά και όταν το top-nav αλλάζει ύψος (π.χ. σε κινητό).
     Το -webkit-sticky χρειάζεται για παλιότερο iOS Safari. */
  position: -webkit-sticky;
  position: sticky;
  top: var(--nav-height, 60px);
  z-index: 500;
}

/* Όταν η γραμμή είναι πραγματικά "κολλημένη" (μετά το scroll),
   μαζεύει ύψος ώστε να μην τρώει χώρο από την οθόνη */
#songsTable th.stuck {
  padding: 4px 10px;
  font-size: 0.82em;
}

#songsTable th:hover {
  background-color: #333333;
}

#songsTable td {
  padding: 10px 14px;
  border-bottom: 1px solid #2a2a2a;
  font-size: 14px;
  white-space: nowrap;
}

#songsTable tbody tr:nth-child(even) {
  background-color: #181818;
}

#songsTable tbody tr:hover {
  background-color: #2a2a2a;
}

.sort-icon {
  display: inline-block;
  margin-left: 5px;
  font-size: 0.85em;
  opacity: 0.6;
}

#noResults {
  color: #ff4444;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
}

/* ==========================================
   5. RESPONSIVE ΣΧΕΔΙΑΣΜΟΣ (ΚΙΝΗΤΑ & TABLETS)
   ========================================== */
@media screen and (max-width: 768px) {
  .top-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  
  .nav-left {
    display: none;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
  }

  .nav-search {
    width: 100%;
    justify-content: center;
  }

  .nav-search input[type="text"] {
    width: 100%;
  }

  .nav-search input[type="text"]:focus {
    width: 100%;
  }

  #slogan {
    font-size: 18px;
  }

  .content {
    padding: 8px;
  }

  .my-button {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  /* ΑΠΟΚΡΥΨΗ ΣΤΗΛΩΝ ΣΕ ΚΙΝΗΤΑ: Κρύβουμε 1, 2, 5, 6 */
  #songsTable th:nth-child(1), #songsTable td:nth-child(1),
  #songsTable th:nth-child(2), #songsTable td:nth-child(2),
  #songsTable th:nth-child(5), #songsTable td:nth-child(5),
  #songsTable th:nth-child(6), #songsTable td:nth-child(6) {
    display: none;
  }

  /* Ο Καλλιτέχνης και ο Τίτλος προσαρμόζονται άνετα στην οθόνη */
  #songsTable th:nth-child(3), #songsTable td:nth-child(3),
  #songsTable th:nth-child(4), #songsTable td:nth-child(4) {
    white-space: normal;
    word-break: break-word;
    font-size: 13px;
    padding: 10px 8px;
  }
}

  /* Ειδικό στυλ μόνο για την Αρχική Σελίδα */
  .home-container {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .welcome-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-top: 20px;
  }
  
  .welcome-title {
    font-size: 28px;
    color: #a64193;
    margin-bottom: 15px;
    font-weight: 800;
  }
  
  .welcome-desc {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.8;
  }
  
  .main-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .big-btn {
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
     min-width: 300px;
  }

  /* .btn-greek {
    background-color: #a64193;
    color: #fff;
    border: 2px solid #a64193;
  }

  .btn-greek:hover {
    background-color: transparent;
    color: #a64193;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
  } */

  .btn-foreign {
    background-color: transparent;
    color: #fff;
    border: 2px solid #a64193;
     }

  .btn-foreign:hover {
    background-color: #a64193;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
  }
