/* =========================================
   MAÇVAR — GENEL TASARIM
========================================= */

* {
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #101827;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.5;
}

/* =========================================
   ANA SAYFA
========================================= */

.container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 30px 18px 50px;
}

/* =========================================
   ÜST BÖLÜM
========================================= */

header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #62e6b7;
    margin-bottom: 12px;
}

.subtitle {
    color: #aab6c8;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* =========================================
   ÖZET KARTLARI
========================================= */

.summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 35px;
}

.summary > div {
    background: #1c293d;
    border: 1px solid #2b3a50;
    border-radius: 18px;
    padding: 22px 12px;
    text-align: center;
}

.summary span {
    display: block;
    color: #62e6b7;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.summary small {
    display: block;
    color: #aab6c8;
    font-size: 13px;
}

/* =========================================
   MAÇ LİSTESİ
========================================= */

main h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 20px;
}

.match-day {
    background: #1c293d;
    border: 1px solid #2b3a50;
    border-radius: 18px;
    margin-bottom: 18px;
    overflow: hidden;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
    background: #24344a;
    border-bottom: 1px solid #34445a;
}

.day-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: capitalize;
}

.day-count {
    color: #62e6b7;
    background: #163e37;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================
   TEKİL MAÇ
========================================= */

.match {
    padding: 18px;
    border-bottom: 1px solid #34445a;
}

.match:last-child {
    border-bottom: none;
}

.match-time {
    display: inline-block;
    color: #62e6b7;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.match-teams {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.match-stadium {
    color: #aab6c8;
    font-size: 13px;
}

/* =========================================
   TAKIM FİLTRESİ
========================================= */

.filter-container {
    background: #1c293d;
    border: 1px solid #2b3a50;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
}

.filter-label input {
    width: 20px;
    height: 20px;
    accent-color: #62e6b7;
    cursor: pointer;
    flex-shrink: 0;
}

/* =========================================
   YÜKLENİYOR / BOŞ DURUM
========================================= */

.loading,
.empty {
    text-align: center;
    color: #aab6c8;
    background: #1c293d;
    border: 1px solid #2b3a50;
    border-radius: 14px;
    padding: 25px 18px;
    font-size: 14px;
}

/* =========================================
   ALT BÖLÜM
========================================= */

footer {
    text-align: center;
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid #2b3a50;
}

footer p {
    color: #77869b;
    font-size: 12px;
    margin: 6px 0;
}

/* =========================================
   TELEFON EKRANI
========================================= */

@media (max-width: 480px) {
    .container {
        padding: 22px 14px 40px;
    }

    .logo {
        font-size: 32px;
    }

    .subtitle {
        font-size: 14px;
    }

    .summary > div {
        padding: 18px 10px;
    }

    .summary span {
        font-size: 28px;
    }

    .match-teams {
        font-size: 16px;
    }

    .day-header {
        padding: 15px 14px;
    }

    .match {
        padding: 15px 14px;
    }
}

/* MaçVar bildirim ayarları */

.notification-settings {
  margin: 24px 0;
  padding: 22px;
  background: #172235;
  border: 1px solid #2b3d55;
  border-radius: 18px;
}

.notification-settings h2 {
  margin: 0 0 12px;
  color: #f5f7fb;
  font-size: 20px;
}

.notification-settings p {
  color: #b7c5d8;
  font-size: 14px;
  line-height: 1.6;
}

.notification-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.notification-buttons button {
  flex: 1;
  min-width: 140px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#enableNotifications {
  background: #60e1b9;
  color: #101827;
}

#disableNotifications {
  background: #34445b;
  color: #ffffff;
}

#notificationStatus {
  margin-top: 14px;
  font-size: 13px;
}

/* =========================================
   MAÇVAR — GELİŞMİŞ BİLDİRİM AYARLARI
========================================= */

.notification-settings {
    margin: 25px 0 32px;
    padding: 22px;
    background: #172235;
    border: 1px solid #2b3d55;
    border-radius: 20px;
}

.settings-heading {
    margin-bottom: 24px;
}

.settings-heading h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #ffffff;
}

.settings-heading p {
    margin: 0;
    color: #aab6c8;
    font-size: 14px;
}

.settings-group {
    padding: 20px 0;
    border-top: 1px solid #2b3d55;
}

.settings-group h3 {
    margin: 0 0 18px;
    font-size: 16px;
    color: #62e6b7;
}

.settings-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    cursor: pointer;
}

.settings-switch span {
    font-size: 14px;
    color: #ffffff;
}

.settings-switch strong,
.settings-radio strong {
    display: block;
    font-size: 14px;
}

.settings-switch small,
.settings-radio small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
    color: #aab6c8;
}

.settings-switch input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    accent-color: #62e6b7;
    cursor: pointer;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 18px;
}

.settings-field label {
    color: #c5d0df;
    font-size: 13px;
    font-weight: 600;
}

.settings-field input,
.settings-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #3b506b;
    border-radius: 11px;
    background: #24344a;
    color: #ffffff;
    font-size: 15px;
    color-scheme: dark;
}

.settings-field input:focus,
.settings-field select:focus {
    outline: 2px solid #62e6b7;
    outline-offset: 2px;
}

.settings-radio {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    cursor: pointer;
}

.settings-radio input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #62e6b7;
}

.save-settings-button {
    width: 100%;
    padding: 15px 18px;
    margin-top: 12px;
    border: none;
    border-radius: 12px;
    background: #62e6b7;
    color: #101827;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.save-settings-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.settings-status {
    margin: 15px 0 0;
    font-size: 13px;
    color: #c5d0df;
}

.settings-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #77869b;
}

@media (max-width: 480px) {
    .notification-settings {
        padding: 18px;
    }
}

/* Taşmayan, 5 dakikalık saat seçici */

.settings-field {
    min-width: 0;
}

.time-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.time-picker select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px 8px;
    text-align: center;
    font-size: 16px;
}

.time-picker span {
    font-size: 20px;
    font-weight: 700;
    color: #62e6b7;
}