/* Front page styles — extracted from front-page.php for SEO optimization */
  :root {
    --greek-blue: #0D5EAF;
    --greek-blue-dark: #0a4a8a;
    --greek-blue-deep: #083870;
    --greek-blue-light: #1a77cc;
    --greek-white: #ffffff;
    --greek-sky: #e8f2fc;
    --greek-foam: #d0e6f8;
    --gold: #d4a843;
    --text: #0d1f33;
    --subtle: #5a7fa8;
    --muted-bg: #f0f5fb;
    --radius: 12px;
    --shadow: 0 2px 16px rgba(13,94,175,0.10);
    --shadow-lg: 0 6px 32px rgba(13,94,175,0.18);
    --aegean: #0D5EAF;
    --sky: #1a77cc;
    --foam: #d0e6f8;
    --mist: #f0f5fb;
    --terracotta: #c75b39;
  }

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

  body {
    font-family: 'IBM Plex Sans', sans-serif !important;
    background: var(--muted-bg) !important;
    color: var(--text);
    min-height: 100vh;
  }

  /* Hide WP admin bar spacing */
  html { margin-top: 0 !important; scroll-behavior: smooth; }
  #wpadminbar { display: none; }

  .topbar {
    background: linear-gradient(90deg, var(--greek-blue-deep) 0%, var(--greek-blue) 60%, var(--greek-blue-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    height: 62px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 16px rgba(13,94,175,0.35);
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 13px;
  }

  .site-logo {
    width: 46px; height: 46px;
    flex-shrink: 0;
  }

  .topbar-city {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: white;
    white-space: nowrap;
  }

  .topbar-sep {
    color: rgba(255,255,255,0.4);
    font-size: 16px;
    margin: 0 2px;
  }

  .topbar-temp {
    font-size: 18px;
    font-weight: 700;
    color: white;
  }

  .topbar-icon {
    font-size: 26px;
    margin-left: 4px;
    line-height: 1;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .topbar-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
    padding: 4px 8px;
  }
  .topbar-btn:hover, .topbar-btn:focus { color: white; outline: 2px solid rgba(255,255,255,.4); outline-offset: 2px; }

  .fp-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200;
    opacity: 0; transition: opacity .25s;
  }
  .fp-overlay.open { display: block; opacity: 1; }

  .fp-drawer {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
    background: white; z-index: 201; box-shadow: -4px 0 20px rgba(0,0,0,.15);
    transition: right .25s ease; overflow-y: auto;
  }
  .fp-drawer.open { right: 0; }

  .fp-drawer-head {
    background: var(--greek-blue); color: white; padding: 18px 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 15px;
  }
  .fp-drawer-close {
    background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 4px;
  }

  .fp-drawer-nav a {
    display: block; padding: 14px 20px; font-size: 15px; color: #333;
    text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: background .15s;
  }
  .fp-drawer-nav a:hover { background: #f5f7fa; color: var(--greek-blue); }

  .fp-drawer-label {
    font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--greek-blue); padding: 16px 20px 6px; border-top: 2px solid #eee; margin-top: 4px;
  }
  .fp-drawer-label:first-child { border-top: none; margin-top: 0; }

  .nav-bar {
    background: white;
    border-bottom: 2px solid var(--greek-foam);
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 2px 8px rgba(13,94,175,0.07);
  }
  .nav-bar::-webkit-scrollbar { display: none; }

  .nav-tab {
    padding: 13px 22px 11px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fa8c4;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.18s;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-tab.active {
    color: var(--greek-blue);
    border-bottom-color: var(--greek-blue);
  }

  .nav-tab:hover:not(.active) {
    color: var(--greek-blue-dark);
  }

  /* Περιοχές dropdown */
  .wt-dropdown { position: relative; flex-shrink: 0; display: flex; align-items: stretch; }
  .wt-dropdown > .nav-tab { display: flex; align-items: center; }
  .wt-dd-arrow { font-size: 9px; margin-left: 3px; opacity: .6; }
  .wt-dropdown-menu {
    display: none;
    position: fixed;
    min-width: 200px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(13,94,175,.15), 0 2px 6px rgba(0,0,0,.06);
    padding: 6px 0;
    z-index: 10000;
  }
  .wt-dropdown.open .wt-dropdown-menu { display: block; }
  .wt-dd-item {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
  }
  .wt-dd-item:hover { background: #f0f6fd; color: var(--greek-blue); }
  .wt-dd-divider { height: 1px; background: #e8f0f8; margin: 4px 12px; }

  .nav-arrow {
    margin-left: auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #aac2dc;
    cursor: pointer;
    flex-shrink: 0;
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 40px;
  }

  .fp-h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--greek-blue-deep);
    margin: 18px 0 0;
  }

  .now-card-wrapper {
    background: white;
    border-radius: 6px;
    margin-top: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
  }

  .now-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
  }

  .now-card-header-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--greek-blue);
  }

  .now-card-clock {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.04em;
  }

  .now-card {
    display: flex;
    align-items: center;
    padding: 28px 24px 32px;
    gap: 0;
  }

  .now-icon-wrap {
    flex-shrink: 0;
    margin-right: 20px;
  }

  .now-icon {
    font-size: 72px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
    animation: floatIcon 4s ease-in-out infinite;
  }

  @keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .now-temp-wrap {
    flex-shrink: 0;
    margin-right: 28px;
  }

  .now-temp {
    font-size: 88px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
    letter-spacing: -0.03em;
  }

  .now-temp-unit {
    font-size: 30px;
    font-weight: 400;
    color: #1a1a1a;
    vertical-align: super;
    margin-left: 1px;
    line-height: 1;
  }

  .now-info {
    flex: 1;
  }

  .now-desc {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .now-feels {
    font-size: 14px;
    color: #888;
    font-weight: 400;
  }

  .now-feels strong {
    color: #555;
    font-weight: 600;
  }

  .now-label { display: none; }

  .details-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
  }

  .detail-card {
    background: white;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    box-shadow: var(--shadow);
  }

  .detail-icon { font-size: 20px; margin-bottom: 4px; }

  .detail-val {
    font-size: 17px;
    font-weight: 600;
    color: var(--aegean);
    line-height: 1.2;
  }

  .detail-lbl {
    font-size: 10px;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
  }

  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 12px;
  }

  .section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--subtle);
  }

  .hourly-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    touch-action: pan-x;
    scroll-snap-type: x proximity;
    cursor: grab;
  }
  .hourly-scroll::-webkit-scrollbar { display: none; }
  .hourly-scroll.dragging { cursor: grabbing; scroll-snap-type: none; }
  .hourly-scroll-wrap { position: relative; }
  .hourly-scroll-wrap::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 50px;
    background: linear-gradient(to right, transparent, var(--muted-bg));
    pointer-events: none;
    z-index: 1;
  }

  .hour-card {
    background: white;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    min-width: 68px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    transition: transform 0.2s;
  }
  .hour-card:hover { transform: translateY(-3px); }
  .hour-card.active {
    background: linear-gradient(145deg, var(--greek-blue-deep), var(--greek-blue));
    color: white;
  }

  .hour-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--subtle);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
  }
  .hour-card.active .hour-time { color: rgba(255,255,255,0.7); }

  .hour-emoji { font-size: 22px; margin-bottom: 6px; }

  .hour-temp {
    font-size: 16px;
    font-weight: 600;
    color: var(--aegean);
  }
  .hour-card.active .hour-temp { color: white; }

  .hour-rain {
    font-size: 10px;
    color: var(--sky);
    margin-top: 3px;
  }
  .hour-card.active .hour-rain { color: rgba(255,255,255,0.7); }

  .daily-list {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .daily-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--foam);
    transition: background 0.15s;
  }
  .daily-row:last-child { border-bottom: none; }
  .daily-row:hover { background: var(--mist); }

  .daily-day {
    font-size: 13px;
    font-weight: 600;
    width: 52px;
    color: var(--text);
  }
  .daily-row.today .daily-day { color: var(--greek-blue); }

  .daily-date {
    font-size: 11px;
    color: var(--subtle);
    width: 36px;
  }

  .daily-emoji { font-size: 22px; margin: 0 6px; }

  .daily-desc {
    flex: 1;
    font-size: 12px;
    color: var(--subtle);
  }

  .daily-rain {
    font-size: 12px;
    color: var(--sky);
    width: 38px;
    text-align: right;
  }

  .daily-temps {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .daily-hi {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
  }

  .daily-lo {
    font-size: 14px;
    font-weight: 400;
    color: var(--subtle);
  }

  .sun-moon-card {
    background: linear-gradient(135deg, #fff9ec, white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(201,168,76,0.2);
  }

  .sun-section, .moon-section {
    flex: 1;
    text-align: center;
  }

  .sun-section h4, .moon-section h4 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--subtle);
    margin-bottom: 10px;
  }

  .sun-icon { font-size: 32px; margin-bottom: 8px; }

  .sun-time-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
  }

  .sun-time-item span {
    display: block;
    font-size: 10px;
    color: var(--subtle);
    margin-bottom: 2px;
  }

  .sun-time-item strong {
    font-weight: 600;
    color: var(--gold);
  }

  .daylight {
    font-size: 12px;
    color: var(--subtle);
    margin-top: 6px;
  }

  .divider-v {
    width: 1px;
    height: 60px;
    background: rgba(201,168,76,0.2);
  }

  .aqi-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .aqi-icon { font-size: 32px; }

  .aqi-info { flex: 1; }

  .aqi-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 3px;
  }

  .aqi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--terracotta);
  }

  .aqi-desc {
    font-size: 12px;
    color: var(--subtle);
    margin-top: 3px;
    line-height: 1.5;
  }

  .aqi-bar {
    height: 6px;
    background: linear-gradient(to right, #4CAF50, #FFC107, #FF5722);
    border-radius: 3px;
    margin-top: 10px;
    position: relative;
  }

  .aqi-needle {
    position: absolute;
    top: -4px;
    width: 14px; height: 14px;
    background: white;
    border: 2px solid var(--terracotta);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 1s ease;
  }

  .radar-card {
    background: var(--aegean);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    height: 180px;
  }

  .radar-bg {
    width: 100%; height: 100%;
    background:
      radial-gradient(ellipse at 60% 40%, rgba(26,119,204,0.5) 0%, transparent 60%),
      linear-gradient(135deg, #052a5c 0%, #0a4a8a 50%, #0D5EAF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .radar-map {
    font-size: 80px;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
  }
  @keyframes pulse { 0%,100%{opacity:0.3} 50%{opacity:0.5} }

  .radar-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='rgba(46,163,255,0.12)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='55' fill='none' stroke='rgba(46,163,255,0.10)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='30' fill='none' stroke='rgba(46,163,255,0.08)' stroke-width='1'/%3E%3Cline x1='100' y1='20' x2='100' y2='180' stroke='rgba(46,163,255,0.06)' stroke-width='1'/%3E%3Cline x1='20' y1='100' x2='180' y2='100' stroke='rgba(46,163,255,0.06)' stroke-width='1'/%3E%3C/svg%3E") center/cover;
    pointer-events: none;
  }

  .radar-label {
    position: absolute;
    top: 14px; left: 18px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
  }

  .radar-city {
    position: absolute;
    bottom: 14px; right: 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.06em;
  }

  .loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    flex-direction: column;
    gap: 16px;
    color: var(--subtle);
  }

  .spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--foam);
    border-top-color: var(--sky);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .error-banner {
    background: #e8f0fb;
    border: 1px solid rgba(13,94,175,0.3);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--greek-blue-dark);
    display: none;
    margin-top: 16px;
  }

  footer.weather-footer {
    background: var(--greek-blue-deep);
    color: rgba(255,255,255,0.5);
    padding: 36px 24px 20px;
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-top: 20px;
    border-top: 3px solid var(--gold);
  }
  footer.weather-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
  footer.weather-footer a:hover { color: var(--gold); }
  .footer-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 24px;
  }
  .footer-col h5 {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .footer-col a {
    display: block;
    font-size: 12px;
    line-height: 2;
  }
  .footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
  }
  .footer-bottom a { color: var(--gold); }
  @media (max-width: 600px) {
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
  }

  .update-badge {
    font-size: 11px;
    color: var(--subtle);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .update-dot {
    width: 6px; height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
  }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

  .unit-toggle {
    display: flex;
    gap: 2px;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 2px;
  }
  .unit-btn {
    border: none;
    background: transparent;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    color: #888;
    font-family: 'IBM Plex Sans', sans-serif;
    transition: all 0.2s;
  }
  .unit-btn.active {
    background: white;
    color: var(--greek-blue);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  @media (max-width: 420px) {
    .details-row { grid-template-columns: repeat(2,1fr); }
    .now-temp { font-size: 60px; }
    .now-icon { font-size: 60px; }
    .daily-desc { display: none; }
  }

  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

  /* night theme */
  body.is-night .topbar {
    background: linear-gradient(90deg, #020e24 0%, #041530 60%, #061d3d 100%);
  }
  body.is-night .hour-card.active {
    background: linear-gradient(145deg, #020e24, #041530);
  }

  /* Additional utility classes */
  .now-card-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .now-unit-label {
    font-size: 22px;
    font-weight: 400;
    color: #888;
    margin-left: 2px;
  }

  .fp-section-spacing {
    margin-top: 20px;
  }
