/*
 * COMPTON PERFORMING ARTS ACADEMY
 * Refined Design System v2.0
 * 
 * DESIGN PHILOSOPHY:
 * - Sleek, sophisticated, modern
 * - Reduced color palette for elegance
 * - Chic typography with Google Fonts
 * 
 * COLOR PALETTE (3 colors):
 * - Primary:    #1a1a2e (Deep Navy/Charcoal)
 * - Accent:     #c9a227 (Sophisticated Gold)
 * - Text:       #2d2d2d (Soft Black)
 * - Background: #fafafa (Warm White)
 * 
 * FONTS:
 * - Display:    'Cormorant Garamond' (elegant serif)
 * - Body:       'DM Sans' (clean modern sans)
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --color-primary: #1a1a2e;
  --color-primary-light: #2d2d44;
  --color-accent: #c9a227;
  --color-accent-hover: #b8922a;
  --color-text: #2d2d2d;
  --color-text-light: #5a5a5a;
  --color-text-muted: #888888;
  --color-background: #fafafa;
  --color-white: #ffffff;
  --color-border: #e8e8e8;
  
  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-text-light);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  background-color: var(--color-white) !important;
  box-shadow: 0 1px 0 var(--color-border);
}

nav ul a,
nav .brand-logo {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

nav ul a:hover {
  color: var(--color-accent);
}

/* Active/Apply link styling */
nav ul li a[href="/apply"] {
  color: var(--color-accent) !important;
  font-weight: 600;
}

/* STEAM text - unified color */
nav ul li a[href="/steam"] span {
  color: var(--color-primary) !important;
}

nav ul li a[href="/steam"]:hover span {
  color: var(--color-accent) !important;
}

.nav-wrapper {
  height: auto;
  padding: var(--spacing-sm) 0;
}

.sidenav-trigger {
  color: var(--color-primary);
  font-weight: bold;
}

.sidenav-trigger:hover {
  color: var(--color-accent);
}

/* Mobile Navigation */
.sidenav {
  background-color: var(--color-white);
}

.sidenav li > a {
  color: var(--color-primary) !important;
  font-family: var(--font-body);
  font-weight: 500;
}

.sidenav li > a:hover {
  background-color: var(--color-background);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
.btn-large,
.btn-small {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: none;
  transition: all var(--transition-base);
}

.btn:hover,
.btn-large:hover,
.btn-small:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Primary Button (was red) */
.btn.red,
.btn-large.red,
.btn-small.red,
.btn.waves-effect.waves-light.red {
  background-color: var(--color-accent) !important;
  color: var(--color-primary) !important;
}

.btn.red:hover,
.btn-large.red:hover {
  background-color: var(--color-accent-hover) !important;
}

/* Secondary Button (was orange/teal) */
.btn.orange,
.btn-large.orange,
.btn-small.orange,
.btn.teal,
.btn-large.teal,
.btn-small.teal {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

.btn.orange:hover,
.btn-large.orange:hover,
.btn.teal:hover,
.btn-large.teal:hover {
  background-color: var(--color-primary-light) !important;
}

/* Back Button */
#back {
  background-color: var(--color-primary) !important;
  color: var(--color-white);
  margin: 0;
}

#back:hover {
  background-color: var(--color-primary-light) !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer.page-footer {
  background-color: var(--color-primary) !important;
  margin: 0;
  padding-top: var(--spacing-lg);
}

footer.page-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

footer.page-footer a:hover {
  color: var(--color-accent);
}

.footer-copyright {
  background-color: rgba(0, 0, 0, 0.2) !important;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* ============================================
   BAR COMPONENT
   ============================================ */
#bar {
  margin: 0 auto;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   TITLE COMPONENT
   ============================================ */
#title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary) !important;
  text-shadow: none;
  text-transform: capitalize;
}

/* ============================================
   PARALLAX SECTIONS
   ============================================ */
.parallax-container {
  min-height: 400px;
  line-height: 0;
  height: auto;
  color: var(--color-white);
}

.parallax-container .section {
  width: 100%;
}

.parallax-container h1,
.parallax-container h4,
.parallax-container h5 {
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Parallax overlay text boxes */
.parallax-container [style*="background: rgba"] {
  background: rgba(26, 26, 46, 0.85) !important;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.card .card-action {
  border-top: 1px solid var(--color-border);
}

.card .card-action h4,
.card .card-action h6 {
  color: var(--color-primary) !important;
}

.card .card-action h6 {
  color: var(--color-text-muted) !important;
  font-size: 0.8rem;
}

/* ============================================
   LISTS
   ============================================ */
ul.page {
  margin: 0;
  font-size: 1rem;
  list-style: none;
  color: var(--color-text);
}

ul.page li {
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
}

ul.page li:before {
  content: "—";
  padding-right: var(--spacing-sm);
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================
   TABLES
   ============================================ */
table {
  font-family: var(--font-body);
}

table.striped > tbody > tr:nth-child(odd) {
  background-color: var(--color-background);
}

table th {
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

/* Schedule table - unified colors */
table td[style*="background: #592040"],
table td[style*="background: #8503ff"],
table td[style*="background: #0000ff"],
table td[style*="background: #6B8E23"] {
  background-color: var(--color-primary) !important;
}

table td[style*="background: #ffbb00"] {
  background-color: var(--color-accent) !important;
  color: var(--color-primary) !important;
}

/* ============================================
   VIDEO COMPONENTS
   ============================================ */
.hytPlayerWrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hytPlayerWrap iframe,
.hytPlayerWrap object,
.hytPlayerWrap embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hytPlayerWrapOuter {
  background: var(--color-primary);
  padding: 4px;
  border-radius: 6px;
  margin-bottom: var(--spacing-md);
}

.hytPlayerWrap.ended::after,
.hytPlayerWrap.paused::after {
  background-color: var(--color-primary);
}

/* ============================================
   SPLASH PAGE
   ============================================ */
/* Splash background overlay */
body[style*="splash"] {
  background-color: var(--color-primary);
}

/* Enter Site Button */
#download-button {
  background-color: var(--color-accent) !important;
  color: var(--color-primary) !important;
  font-weight: 600;
}

#download-button:hover {
  background-color: var(--color-accent-hover) !important;
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */
/* Section headers */
.icon-block h5 {
  color: var(--color-primary) !important;
  font-family: var(--font-display);
}

.icon-block p {
  color: var(--color-text-light);
}

/* Global Online section */
h4[style*="color: #00ff00"],
h5[style*="color: #00ff00"] {
  color: var(--color-accent) !important;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.container h6[style*="color: #6BDA0E"] {
  color: var(--color-accent) !important;
}

/* ============================================
   DEPARTMENTS PAGE
   ============================================ */
.container h4[style*="color:#DB0E4C"],
.container h4[style*="color: red"] {
  color: var(--color-primary) !important;
}

/* ============================================
   APPLY PAGE
   ============================================ */
table th[style*="background: #B695C0"] {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
}

/* ============================================
   MATRIX CANVAS
   ============================================ */
#main_canvas {
  opacity: 0.6;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
  color: var(--color-primary) !important;
}

.text-accent {
  color: var(--color-accent) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-accent {
  background-color: var(--color-accent) !important;
}

/* ============================================
   BLINK ANIMATION
   ============================================ */
.blink {
  animation-duration: 1s;
  animation-name: blink;
  animation-iteration-count: infinite;
  animation-timing-function: steps(2, start);
}

@keyframes blink {
  80% {
    visibility: hidden;
  }
}

/* ============================================
   ROTATION UTILITY
   ============================================ */
.rotate {
  transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media only screen and (max-width: 992px) {
  .parallax-container .section {
    position: absolute;
    top: 40%;
  }
  
  #index-banner .section {
    top: 10%;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

@media only screen and (max-width: 600px) {
  #index-banner .section {
    top: 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.25rem;
  }
  
  #title {
    font-size: 1.75rem;
  }
  
  .btn-large {
    font-size: 0.9rem;
    padding: 0 1.5rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  nav,
  footer,
  #bar,
  #back,
  .btn {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
  }
}

/* ============================================
   CLEAR FIX
   ============================================ */
.clear {
  clear: both;
}
