/*
Theme Name: MGHS Flying Aces Alumni Network
Description: Professional alumni directory theme for Mulberry Grove High School Flying Aces - matches standalone app design exactly.
Version: 2.1.0
Author: Your Organization
Text Domain: mghs-alumni
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

MGHS Flying Aces Alumni theme that exactly matches the standalone HTML application design.
*/

/* Base Alumni App Styles - Matching Standalone App Exactly */

:root {
  /* MGHS School Colors from Logo */
  --primary-color: #1e40af;
  --secondary-color: #fb923c;
  --accent-color: #f97316;
  --secondary-color-rgb: 251, 146, 60;
  
  /* Background Colors */
  --bg-gradient-start: #eff6ff;
  --bg-gradient-end: #dbeafe;
  --card-bg: #ffffff;
  --card-bg-secondary: #f8fafc;
  
  /* Text Colors */
  --text-primary: #334155;
  --text-secondary: #64748b;
  --text-light: #6b7280;
  --text-muted: #475569;
  --text-accent: #f97316;
  
  /* Button Colors */
  --btn-primary-bg: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  --btn-secondary-bg: rgba(255, 255, 255, 0.15);
  
  /* Border Colors */
  --border-light: #e2e8f0;
  --border-medium: #d1d5db;
  --border-accent: #fb923c;
}

/* Reset WordPress defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* WordPress Theme Integration - Matching Standalone App */
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
}

/* WordPress Admin Bar Compatibility */
.admin-bar #alumni-app {
  margin-top: 32px;
}

/* Remove WordPress padding/margins */
#primary, .site-main, #alumni-app {
  margin: 0;
  padding: 0;
}

.site {
  margin: 0;
}

/* Header Styles - Matching Standalone App Exactly */
.header {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.25);
}

.admin-bar .header {
  top: 32px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.header-title {
  font-family: 'Oswald', Impact, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.header-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 10px;
  color: #fb923c;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

.notification-btn {
  background: rgba(251, 146, 60, 0.2);
  border: 2px solid #fb923c;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  color: #fb923c;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.notification-btn:hover {
  background: rgba(251, 146, 60, 0.3);
  transform: scale(1.05);
}

/* Main Content - Matching Standalone App */
.main-content {
  padding: 20px;
  padding-bottom: 100px;
  max-width: 800px;
  margin: 0 auto;
}

/* Hero Section Styles - Matching Standalone App */
.hero-section {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.hero-title {
  font-family: 'Oswald', Impact, sans-serif;
  font-size: 2.2em;
  font-weight: 700;
  color: white;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-message {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  position: relative;
}

/* Navigation Tabs Styling - Matching Standalone App Exactly */
.alumni-nav-tabs {
  background: white;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--border-light);
}

.nav-tab-btn {
  background: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  min-width: 100px;
  justify-content: center;
}

.nav-tab-btn:hover,
.nav-tab-btn.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  border-color: var(--primary-color);
}

.nav-icon {
  font-size: 18px;
}

.nav-label {
  font-weight: 600;
}

/* Button Styling - Matching Standalone App */
.btn {
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(251, 146, 60, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.6);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* Card Styling - Matching Standalone App */
.card {
  background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-bg-secondary) 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.08), 0 1px 3px rgba(30, 64, 175, 0.04);
  border: 1px solid rgba(30, 64, 175, 0.06);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(30, 64, 175, 0.12), 0 2px 6px rgba(30, 64, 175, 0.08);
  transform: translateY(-2px);
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Statistics Section - Matching Standalone App */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.stat-card {
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.stat-icon {
  font-size: 2.5em;
  margin-bottom: 12px;
  display: block;
}

.stat-value {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-family: 'Oswald', Impact, sans-serif;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

/* Responsive Design - Matching Standalone App */
@media (max-width: 768px) {
  .header {
    padding: 10px 15px;
  }
  
  .header-logo {
    width: 44px;
    height: 44px;
  }
  
  .header-title {
    font-size: 14px;
  }
  
  .header-subtitle {
    font-size: 9px;
  }
  
  .main-content {
    padding: 15px;
  }
  
  .hero-section {
    padding: 24px 20px;
  }
  
  .hero-title {
    font-size: 1.8em;
  }
  
  .card {
    padding: 20px;
    border-radius: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-actions {
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .current-school-info-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (min-width: 769px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

/* WordPress Admin Bar Mobile Adjustments */
@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
  
  .admin-bar #alumni-app {
    margin-top: 46px;
  }
}

/* Print Styles */
@media print {
  .header,
  .notification-btn,
  #registration-modal,
  .admin-actions {
    display: none !important;
  }
}

/* WordPress Compatibility Fixes */
.wp-block-group {
  margin: 0;
}

.entry-content {
  font-size: inherit;
}

/* Remove WordPress default styling conflicts */
#primary {
  margin: 0;
}

.site-main {
  padding: 0;
}

/* Loading States */
.alumni-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.quick-action-btn {
  background: var(--card-bg-secondary);
  color: var(--primary-color);
  border: 2px solid var(--border-medium);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.quick-action-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  text-decoration: none;
}

.quick-action-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}


