/*
Theme Name:   Winterlight Blog Child
Description:  AirSOTA Portal — Web App UI Child Theme
Author:       AirSOTA
Template:     winterlight-blog
Version:      1.0.0
*/

/* =============================================
   1. DESIGN SYSTEM — CSS Variables & Reset
   ============================================= */
:root {
  /* AirSOTA Brand Palette */
  --brand-ice:    #dce8f3;
  --brand-light:  #a5c8e4;
  --brand-main:   #5b9bd5;
  --brand-deep:   #3a7bbf;
  --brand-dark:   #1c4568;
  --brand-navy:   #0f2d47;

  /* Accent Colors by Domain */
  --accent-career:  #5b9bd5;   /* Technology Blue */
  --accent-hustle:  #a855f7;   /* Side-hustle Purple */
  --accent-family:  #10b981;   /* Warm Life Emerald */

  /* General Colors (Light Theme Default) */
  --bg-primary:       #f4f7fb;
  --bg-surface:       rgba(255, 255, 255, 0.75);
  --bg-surface-hover: rgba(255, 255, 255, 0.92);
  --text-heading:     #0f172a;
  --text-body:        #334155;
  --text-muted:       #64748b;
  --border:           rgba(15, 45, 71, 0.08);
  --border-hover:     rgba(91, 155, 213, 0.3);

  /* Layout settings */
  --font-sans: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-pill: 9999px;

  /* Shadows & Glows */
  --shadow-sm:    0 2px 8px rgba(15, 45, 71, 0.04);
  --shadow-md:    0 8px 24px rgba(15, 45, 71, 0.05);
  --shadow-lg:    0 16px 40px rgba(15, 45, 71, 0.08);
  --shadow-hover: 0 20px 48px rgba(91, 155, 213, 0.12);

  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =============================================
   2. DARK THEME OVERRIDES
   ============================================= */
[data-theme="dark"] {
  --bg-primary:       #080c16;
  --bg-surface:       rgba(15, 23, 42, 0.65);
  --bg-surface-hover: rgba(15, 23, 42, 0.85);
  --text-heading:     #f8fafc;
  --text-body:        #cbd5e1;
  --text-muted:       #94a3b8;
  --border:           rgba(255, 255, 255, 0.08);
  --border-hover:     rgba(165, 200, 228, 0.35);

  --accent-career:  #60a5fa;
  --accent-hustle:  #c084fc;
  --accent-family:  #34d399;

  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md:    0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg:    0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* =============================================
   3. GLOBAL BASE STYLES
   ============================================= */
body {
  background-color: var(--bg-primary) !important;
  color: var(--text-body) !important;
  transition: background-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

body.page .entry-content > .airsota-portal,
body.page .wp-block-post-content > .airsota-portal,
.airsota-portal {
  max-width: 1200px !important;
  margin: 40px auto !important;
  padding: 0 24px;
  box-sizing: border-box;
  font-family: var(--font-sans);
  color: var(--text-body);
}

.airsota-portal * {
  box-sizing: border-box;
}

/* =============================================
   4. HERO & BRANDING SECTION
   ============================================= */
.airsota-portal__hero {
  text-align: center;
  padding: 50px 20px 30px 20px;
  position: relative;
}

.airsota-portal__hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -1.5px;
  color: var(--text-heading);
  background: linear-gradient(135deg, var(--brand-main), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .airsota-portal__hero h1 {
  background: linear-gradient(135deg, #a5c8e4, #5b9bd5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.airsota-portal__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 0 auto 32px auto;
  letter-spacing: 0.5px;
  max-width: 600px;
  line-height: 1.4;
}

[data-theme="dark"] .airsota-portal__subtitle {
  color: var(--brand-light);
}

/* --- Vision / Lab Intro Card --- */
.airsota-portal__intro {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  max-width: 760px;
  margin: 0 auto 32px auto;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.airsota-portal__intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-main), transparent);
}

.airsota-portal__intro p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* --- Hero Nav Bar --- */
.airsota-portal__nav {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.airsota-portal__nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-main);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: rgba(91, 155, 213, 0.05);
  border: 1px solid rgba(91, 155, 213, 0.15);
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.airsota-portal__nav-link:hover {
  background: rgba(91, 155, 213, 0.12);
  color: var(--brand-deep);
  border-color: var(--brand-main);
  transform: translateY(-2px);
}

[data-theme="dark"] .airsota-portal__nav-link {
  color: var(--brand-light);
  background: rgba(165, 200, 228, 0.06);
  border: 1px solid rgba(165, 200, 228, 0.15);
}

[data-theme="dark"] .airsota-portal__nav-link:hover {
  background: rgba(165, 200, 228, 0.12);
  color: #ffffff;
  border-color: var(--brand-light);
}

/* =============================================
   5. CATEGORIZED SECTIONS (Asymmetrical Layout)
   ============================================= */
.airsota-sections {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.airsota-category-section {
  display: flex;
  flex-direction: row;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Category Specific Accent Borders */
.airsota-category-section--career {
  border-left: 5px solid var(--accent-career);
}
.airsota-category-section--hustle {
  border-left: 5px solid var(--accent-hustle);
}
.airsota-category-section--family {
  border-left: 5px solid var(--accent-family);
}

/* Category Left Column */
.airsota-category-header {
  flex: 0 0 32%;
  padding: 40px;
  background: rgba(91, 155, 213, 0.02);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.airsota-category-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.airsota-category-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: var(--text-heading);
}

.airsota-category-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Category Right Column (Cards Area) */
.airsota-category-cards {
  flex: 1;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-content: center;
}

/* =============================================
   6. PROJECT CARD (Showcase Item)
   ============================================= */
.airsota-project-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  color: inherit !important;
  position: relative;
  transition: transform 0.3s var(--ease-smooth),
              border-color 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth),
              background-color 0.3s var(--ease-smooth);
}

/* Custom Accents on Hover depending on Category context */
.airsota-category-section--career .airsota-project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-career);
  box-shadow: 0 10px 24px rgba(91, 155, 213, 0.15);
  background: var(--bg-surface-hover);
}
.airsota-category-section--hustle .airsota-project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-hustle);
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.15);
  background: var(--bg-surface-hover);
}
.airsota-category-section--family .airsota-project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-family);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.15);
  background: var(--bg-surface-hover);
}

.airsota-project-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  justify-content: space-between;
}

.airsota-project-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-heading);
}

/* Status Badge */
.airsota-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.airsota-status-badge--active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-family);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.airsota-status-badge--dev {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Card Body */
.airsota-project-card__body {
  flex-grow: 1;
  margin-bottom: 20px;
}

.airsota-project-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Card CTA Button */
.airsota-project-card__footer {
  margin-top: 8px;
}

.airsota-project-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  border: none;
  color: #ffffff !important;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.airsota-category-section--career .airsota-project-card__cta {
  background: linear-gradient(135deg, var(--accent-career), var(--brand-deep));
  box-shadow: 0 4px 10px rgba(91, 155, 213, 0.2);
}
.airsota-category-section--hustle .airsota-project-card__cta {
  background: linear-gradient(135deg, var(--accent-hustle), #7c3aed);
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.2);
}
.airsota-category-section--family .airsota-project-card__cta {
  background: linear-gradient(135deg, var(--accent-family), #059669);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.airsota-project-card__cta::after {
  content: ' →';
  font-weight: bold;
  transition: transform 0.2s var(--ease-smooth);
}

.airsota-project-card:hover .airsota-project-card__cta::after {
  transform: translateX(3px);
}

.airsota-project-card__cta:hover {
  opacity: 0.95;
}

/* =============================================
   7. CONTROLS FLOATING GROUP (Theme & Language)
   ============================================= */
.airsota-controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
  z-index: 9999;
}

.airsota-control-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  transition: transform 0.3s var(--ease-smooth), border-color 0.3s, background-color 0.3s;
}

.airsota-control-btn:hover {
  transform: scale(1.1);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.airsota-control-btn--lang {
  font-size: 14px;
  font-family: var(--font-sans);
}

/* =============================================
   8. MEDIA QUERIES (RESPONSIVENESS)
   ============================================= */
@media (max-width: 992px) {
  .airsota-category-header {
    flex: 0 0 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 30px;
  }
  .airsota-category-cards {
    padding: 30px;
  }
  .airsota-category-section {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .airsota-portal__hero h1 {
    font-size: 2.75rem;
  }
  .airsota-portal__subtitle {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }
  .airsota-portal__intro {
    padding: 20px 24px;
  }
  .airsota-sections {
    gap: 32px;
  }
  .airsota-category-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
