/* ==========================================================================
   Skirt Alert CSS Stylesheet - iOS 5/6 Era Re-creation
   ========================================================================== */

/* Variables */
:root {
  --ios-blue: #007aff;
  --ios-green: #4cd964;
  --ios-red: #ff3b30;
  --ios-gray-bg: #cbd3dc;
  --ios-border-color: #c8c7cc;
  --app-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* General resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Utility classes */
.hidden {
  display: none !important;
}

body {
  font-family: var(--app-font);
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/backdrop.jpg') center/cover no-repeat fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

/* Desktop Info Panel */
.desktop-info {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 400px;
  z-index: 10;
}

.desktop-info h1 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.desktop-info p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.lang-toggle-container {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lang-btn.active {
  background: #fff;
  color: #333;
  border-color: #fff;
  font-weight: 500;
}

/* iPhone Device Mockup Frame */
.iphone-device {
  position: relative;
  width: 356px; /* 320px screen + 18px left/right bezel */
  height: 718px; /* 568px screen + 75px top/bottom bezel */
  background: #1c1c1e;
  border: 3px solid #48484a;
  border-radius: 46px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7), 0 0 0 1px #2c2c2e;
  padding: 75px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
  z-index: 5;
}

/* Chrome bezel outline */
.iphone-device::before {
  content: '';
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border: 2px solid #8e8e93;
  border-radius: 46px;
  pointer-events: none;
}

.iphone-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-camera {
  width: 8px;
  height: 8px;
  background: #111;
  border: 1.5px solid #222;
  border-radius: 50%;
  margin-right: 15px;
  box-shadow: inset 0 1px 2px rgba(0,0,255,0.2);
}

.iphone-speaker {
  width: 45px;
  height: 4px;
  background: #2c2c2e;
  border-radius: 2px;
}

.iphone-home-btn {
  position: absolute;
  bottom: 12px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #2c2c2e;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Touch ID steel ring */
.iphone-home-btn::after {
  content: '';
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #8e8e93;
}

/* iPhone Screen Container */
.iphone-screen {
  width: 320px;
  height: 568px;
  background: #000;
  overflow: hidden;
  position: relative;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
}

/* iOS 5/6 Style Translucent Status Bar */
.ios-status-bar {
  height: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom, rgba(40,40,40,0.85) 0%, rgba(15,15,15,0.85) 50%, rgba(0,0,0,0.9) 50%, rgba(0,0,0,0.9) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.4);
  pointer-events: none;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 9px;
  margin-bottom: 1px;
}

.signal-bars .bar {
  width: 2.5px;
  background-color: rgba(255, 255, 255, 0.35);
  border-radius: 0.5px;
}

.signal-bars .bar.filled {
  background-color: #007aff; /* Blue signals in iOS 5/6 */
}

.signal-bars .bar:nth-child(1) { height: 2px; }
.signal-bars .bar:nth-child(2) { height: 4px; }
.signal-bars .bar:nth-child(3) { height: 6px; }
.signal-bars .bar:nth-child(4) { height: 8px; }
.signal-bars .bar:nth-child(5) { height: 10px; }

.carrier-text {
  font-size: 10px;
  color: #fff;
}

.wifi-icon {
  color: #fff;
  display: flex;
  align-items: center;
}

.status-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bluetooth-icon {
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
}

.battery-icon {
  width: 17px;
  height: 9px;
  border: 1px solid #fff;
  border-radius: 2.5px;
  position: relative;
  display: flex;
  padding: 0.8px;
  background-color: rgba(0,0,0,0.4);
}

.battery-icon::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 2px;
  width: 1px;
  height: 3px;
  background-color: #fff;
  border-radius: 0 1px 1px 0;
}

.battery-level {
  height: 100%;
  background-color: #4cd964; /* Green battery cell */
  border-radius: 0.5px;
}

/* App Container */
.app-container {
  width: 100%;
  height: calc(100% - 49px); /* Leave 49px for bottom tab bar */
  position: relative;
  overflow: hidden;
}

/* iOS Bottom Tab Bar (iOS 5/6 Glossy styled) */
.ios-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 49px;
  background: linear-gradient(to bottom, #323232 0%, #1e1e1e 50%, #000 50%, #000 100%);
  border-top: 1px solid #282828;
  display: flex;
  z-index: 100;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  cursor: pointer;
  padding-top: 5px;
  font-family: var(--app-font);
  outline: none;
}

.tab-btn:active {
  background: rgba(255,255,255,0.05);
}

.tab-btn.active {
  color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
}

.tab-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.tab-btn.active .tab-icon {
  color: #3b88ff; /* Classic active blue glow */
  filter: drop-shadow(0 0 5px rgba(59, 136, 255, 0.8));
}

.tab-label {
  font-size: 9px;
  font-weight: 500;
}

.tab-btn.active .tab-label {
  color: #fff;
  font-weight: bold;
}

/* Header bar (Used in Settings and About) */
.nav-bar {
  height: 64px; /* 20px status bar + 44px navbar */
  padding-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  position: relative;
}

/* Settings Glossy Silver Header */
.settings-header, .about-header {
  background: linear-gradient(to bottom, #cbd2db 0%, #abb7c5 50%, #91a1b4 50%, #a2b0c1 100%);
  border-bottom: 1px solid #6d7a8d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.settings-header .nav-title, .about-header .nav-title {
  color: #fff;
  font-size: 19px;
  font-weight: bold;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
}

/* App View configurations */
.app-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.1, 0.8, 0.25, 1), opacity 0.25s ease;
  z-index: 1;
  pointer-events: none;
}

.app-view.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  pointer-events: auto;
}

/* Content Area */
.view-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   1. Current Screen Styling (Sunset / Girl)
   ========================================================================== */
#current-screen {
  background: url('img/backdrop.jpg') center/cover no-repeat;
}

.current-content {
  display: block; /* Absolute layout inside */
  position: relative;
  height: 100%;
}

.weather-dashboard {
  position: absolute;
  left: 12px;
  top: 32px;
  width: 48%;
  z-index: 5;
  text-align: center;
}

.weather-day-label {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  text-transform: capitalize;
}

.weather-city-title {
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  line-height: 1.1;
  margin-top: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-city-tap {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
  text-decoration: none;
  margin-bottom: 8px;
  display: inline-block;
}

.weather-temp {
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  margin-top: 8px;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  line-height: 1.1;
}

.weather-badge {
  display: inline-block;
  font-size: 26px;
  font-weight: bold;
  padding: 5px 22px;
  border-radius: 8px;
  border: 2px solid #fff;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 -1.5px 0 rgba(0,0,0,0.25);
  margin-top: 6px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.weather-badge.yes {
  background: linear-gradient(to bottom, #52d06b 0%, #34c050 100%);
  box-shadow: 0 0 16px 3px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.weather-badge.no {
  background: linear-gradient(to bottom, #ff4c3b 0%, #e0281b 100%);
  box-shadow: 0 0 16px 3px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.weather-badge.loading {
  background-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Translucent two-row details card */
.weather-info-box {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
  width: calc(100% + 12px);
  margin-left: -12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.info-top-row {
  display: flex;
  height: 48px;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
}

.info-bottom-row {
  display: flex;
  height: 32px;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
}

.info-col {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.info-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.info-text {
  font-size: 11px;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.weather-desc {
  font-size: 11px;
  line-height: 1.4;
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  padding-right: 5px;
}

/* Skirt girl positioned absolute on the right */
.skirtgirl-container {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 58%;
  height: calc(100% - 20px);
  pointer-events: none;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.skirtgirl-img {
  width: auto;
  height: 100%;
  max-width: 120%;
  object-fit: contain;
  object-position: bottom right;
}

/* ==========================================================================
   2. Forecast Screen Styling (4 side-by-side columns)
   ========================================================================== */
#forecast-screen {
  background: url('img/forecast_bg.svg') no-repeat center/cover;
}

.forecast-content {
  padding: 15px 8px 10px 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.forecast-header {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 0;
}

.forecast-small-title {
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  display: block;
}

.forecast-city-name {
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  line-height: 1.05;
  margin-top: 4px;
  text-shadow: 0 2px 3px rgba(0,0,0,0.6);
}

.forecast-columns {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}

.forecast-loading {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  width: 100%;
  padding: 40px 0;
}

.forecast-col {
  width: 23.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.forecast-card {
  width: 100%;
  height: 210px; /* matched to target screenshot scale */
  background: rgba(8, 28, 46, 0.65); /* dark blue-grey translucent */
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.15);
}

.forecast-col-day {
  font-size: 15px;
  font-weight: normal;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 1.5px 2px rgba(0,0,0,0.6);
}

.forecast-col-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.forecast-col-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.forecast-col-desc {
  font-size: 13px;
  color: #fff;
  text-align: center;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  padding: 0 4px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  font-weight: normal;
}

.forecast-col-wind {
  font-size: 10px;
  color: #ddd;
  text-align: center;
  line-height: 1.1;
  margin-top: -6px;
  margin-bottom: 4px;
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
}

.forecast-col-temp {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  margin-bottom: 10px;
}

.forecast-col-badge {
  margin-top: 12px;
  width: 100%;
  height: 28px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.forecast-col-badge.yes {
  background: linear-gradient(to bottom, #4cd964 0%, #2fba45 100%);
}

.forecast-col-badge.no {
  background: linear-gradient(to bottom, #ff3b30 0%, #e0281b 100%);
}

/* ==========================================================================
   3. Settings Screen Styling (Pinstripe / iOS 5 Table)
   ========================================================================== */
#settings-screen {
  background: var(--ios-gray-bg);
}

.settings-content, .about-content {
  background-color: #cbd3dc;
  background-image: linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.18) 50%);
  background-size: 6px 100%;
  padding-bottom: 20px;
}

/* Grouped Lists (iOS 5) */
.settings-group {
  margin: 15px 9px 5px 9px;
}

.settings-group-header {
  font-size: 13px;
  font-weight: bold;
  color: #4c566c;
  text-shadow: 0 1px 0 #f5f5f5;
  margin-left: 8px;
  margin-bottom: 6px;
  text-transform: none;
}

.settings-list-container {
  background: #fff;
  border: 1px solid #ababab;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.settings-row {
  background-color: #fff;
  border-bottom: 1.2px solid #e0e0e0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 43px;
}

.settings-row:last-child {
  border-bottom: none;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:active {
  background-color: #e5e5ea;
}

.settings-label-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-row-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.settings-label {
  font-size: 15px;
  font-weight: bold;
  color: #000;
}

.settings-label-small {
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.settings-value-blue {
  color: #3b6290;
  font-size: 15px;
  font-weight: 500;
  margin-right: 4px;
}

.disclosure-indicator {
  color: #8e8e93;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.checkmark-icon {
  color: #3b6290;
  font-weight: bold;
  font-size: 16px;
}

.settings-help-text {
  font-size: 12px;
  color: #4c566c;
  text-align: center;
  padding: 8px 15px 0 15px;
  line-height: 1.35;
  text-shadow: 0 1px 0 #f5f5f5;
}

/* iOS 5 Switch (Sliding Capsule Toggle) */
.ios-5-switch {
  position: relative;
  display: inline-block;
  width: 76px;
  height: 27px;
  border-radius: 14px;
  border: 1px solid #777;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
}

.ios-5-switch input {
  display: none;
}

.ios-5-switch .slider {
  position: absolute;
  top: -1px;
  left: -49px; /* Default is OFF: shift track left by width of ON label */
  width: 125px; /* 49px (ON) + 27px (Knob) + 49px (OFF) */
  height: 27px;
  transition: left 0.15s ease-out;
  display: flex;
  align-items: center;
}

.ios-5-switch input:checked + .slider {
  left: 0; /* Checked is ON: track starts at 0 */
}

.ios-5-switch .on-label {
  width: 49px;
  height: 100%;
  background: linear-gradient(to bottom, #3086e3 0%, #1059b0 100%);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
  user-select: none;
  order: 1;
}

.ios-5-switch .off-label {
  width: 49px;
  height: 100%;
  background: linear-gradient(to bottom, #fafafa 0%, #e0e0e0 100%);
  color: #7a7a7a;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 1px 0 #fff;
  user-select: none;
  order: 3;
}

.ios-5-switch .handle {
  width: 27px;
  height: 27px;
  background: linear-gradient(to bottom, #ffffff 0%, #d5d5d5 100%);
  border-radius: 50%;
  border: 1px solid #8c8c8c;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  flex-shrink: 0;
  order: 2;
}

/* Expandable location search / time pickers styling */
.transition-collapse {
  transition: max-height 0.25s ease-out, padding 0.25s ease, opacity 0.25s ease;
  max-height: 250px;
  overflow: hidden;
  opacity: 1;
}

.transition-collapse.collapsed {
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.settings-search-panel, .settings-time-panel {
  background: #e8ecf1;
  border-bottom: 1.2px solid #c8c7cc;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a7a7a;
}

#city-search-input {
  width: 100%;
  background-color: #fff;
  border: 1px solid #abb7c5;
  border-radius: 6px;
  padding: 6px 10px 6px 28px;
  font-size: 13px;
  font-family: var(--app-font);
  outline: none;
  color: #333;
}

.gps-btn {
  background: linear-gradient(to bottom, #fafafa 0%, #e0e0e0 100%);
  border: 1px solid #ababab;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.gps-btn:active {
  background: #ccc;
}

.search-results-list {
  background: #fff;
  border: 1px solid #abb7c5;
  border-radius: 5px;
  max-height: 140px;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.search-result-item {
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  color: #333;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:active {
  background-color: #3b88ff;
  color: #fff;
}

.search-result-item:active .search-result-country {
  color: #eee;
}

.search-result-country {
  font-size: 10px;
  color: #7a7a7a;
}

.settings-time-picker-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.ios-time-picker {
  border: 1px solid #abb7c5;
  border-radius: 5px;
  padding: 4px 6px;
  font-family: var(--app-font);
  font-size: 14px;
  outline: none;
  background: #fff;
}

.settings-row.btn-row {
  justify-content: center;
  padding: 10px;
  background: #fff;
}

.settings-action-btn {
  background: none;
  border: none;
  color: var(--ios-blue);
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

/* Celsius / Fahrenheit switches visual row */
#settings-screen .settings-row .checkmark-icon {
  margin-right: 5px;
}

/* ==========================================================================
   4. About Screen Styling (Classic Retro iOS About Block)
   ========================================================================== */
#about-screen {
  background: var(--ios-gray-bg);
}

.about-block {
  padding: 24px 15px;
  text-align: center;
}

.about-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  margin-bottom: 10px;
}

.about-block h3 {
  font-size: 19px;
  font-weight: bold;
  color: #000;
  margin-bottom: 2px;
}

.about-version {
  font-size: 11px;
  color: #6d6d72;
  margin-bottom: 16px;
}

.about-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 15px 0;
}

.about-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

.about-credits {
  font-size: 11px;
  line-height: 1.4;
  color: #6d6d72;
  text-align: center;
}

/* ==========================================================================
   5. Simulated Alerts and Banners
   ========================================================================== */
/* Simulated iOS System Alert (Permission Dialogue) */
.ios-alert-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  padding: 24px;
  animation: fadeIn 0.15s ease-out forwards;
}

.ios-alert-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 270px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  animation: alertScaleIn 0.2s cubic-bezier(0.1, 0.8, 0.3, 1.05) forwards;
}

.ios-alert-title {
  color: #000;
  font-size: 17px;
  font-weight: bold;
  padding: 20px 16px 4px 16px;
  line-height: 1.3;
}

.ios-alert-message {
  color: #000;
  font-size: 13px;
  font-weight: 400;
  padding: 0 16px 20px 16px;
  line-height: 1.35;
}

.ios-alert-buttons {
  display: flex;
  border-top: 0.5px solid #b5b5b5;
}

.ios-alert-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--ios-blue);
  font-size: 17px;
  font-family: var(--app-font);
  height: 44px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: none;
}

.ios-alert-btn:first-child {
  border-right: 0.5px solid #b5b5b5;
}

.ios-alert-btn.bold {
  font-weight: bold;
}

.ios-alert-btn:active {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Simulated Push Notification Banner */
.ios-banner {
  position: absolute;
  top: 25px; /* Sit just below status bar */
  left: 8px;
  right: 8px;
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  padding: 8px 10px 5px 10px;
  color: #fff;
  z-index: 1000;
  cursor: pointer;
  animation: bannerSlideDown 0.35s cubic-bezier(0.1, 0.8, 0.2, 1.05) forwards;
  transition: opacity 0.3s ease;
}

.ios-banner.slide-up {
  animation: bannerSlideUp 0.35s cubic-bezier(0.8, 0.1, 0.9, 0.2) forwards;
}

.ios-banner-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ios-banner-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.ios-banner-title {
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 1;
}

.ios-banner-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.ios-banner-body p {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
  color: #eee;
}

.ios-banner-grabber {
  width: 36px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 6px auto 0 auto;
}

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

@keyframes alertScaleIn {
  from { transform: scale(1.1); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bannerSlideDown {
  from { transform: translateY(-120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes bannerSlideUp {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-120%); opacity: 0; }
}

/* Responsive Scaling: Desktop vs Mobile viewport */
@media (max-width: 500px) {
  body {
    background: url('img/backdrop.jpg') center/cover no-repeat;
    display: block;
    overflow-y: auto;
  }
  
  .desktop-info {
    display: none;
  }
  
  .iphone-device {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }
  
  .iphone-device::before {
    display: none;
  }
  
  .iphone-top, .iphone-home-btn {
    display: none;
  }
  
  .iphone-screen {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
  
  .ios-status-bar {
    padding: 0 10px;
    height: 20px;
  }
}

@media (max-width: 900px) {
  .desktop-info {
    display: none;
  }
}

/* Greenish Grass Backdrop at the bottom of the current view */
.grass-backdrop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 135px;
  width: 100%;
  pointer-events: none;
  z-index: 2; /* behind girl (3) but in front of background (0) */
}

.grass-backdrop svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tweet Button at bottom-right */
.tweet-container {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 10;
}

.tweet-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 2px;
  transition: opacity 0.2s ease;
}

.tweet-link:hover {
  opacity: 0.85;
}

.tweet-icon {
  width: 24px;
  height: 24px;
  fill: #fff;
  filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.5));
}

.tweet-text {
  font-size: 9px;
  font-weight: 500;
  color: #fff;
  text-transform: lowercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  font-family: var(--app-font);
}

/* Hide advice description below box in main view */
#current-desc {
  display: none !important;
}

/* Custom Skirt Tab SVG Icon and active filters */
.tab-btn .tab-icon {
  filter: grayscale(100%) opacity(0.55);
}

.tab-btn.active .tab-icon {
  filter: drop-shadow(0 0 5px rgba(59, 136, 255, 0.85));
}

.skirt-tab-svg {
  fill: currentColor;
  stroke: none;
}

.skirt-tab-svg .skirt-waist {
  fill: #3b88ff; /* Active cyan-blue */
}

.skirt-tab-svg .skirt-body {
  fill: #3b88ff; /* Active cyan-blue */
  opacity: 0.85;
}

.skirt-tab-svg .skirt-line {
  stroke: #1e1e1e; /* Match tab bar background to simulate pleat slits */
  stroke-width: 1.5;
}

.tab-btn.active .skirt-tab-svg .skirt-line {
  stroke: #0c0c0c; /* Darker slits when active */
}
