/*
 Theme Name: Siyasa
 Theme URI: http://siyasa.org/
 Description: Siyasa - Muslim Political Commentary Platform
 Author: Siyasa
 Version: 1.2
 License: GPL v2
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: siyasa
*/

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

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0a0a0a; color: #e0e0e0; line-height: 1.6; }

a { color: #14b8a6; text-decoration: none !important; transition: color 0.2s ease; }
a:hover { color: #06b6d4; }
a:visited { color: #0d9488; }

/* Override any inline or nested underlines */
a, a *, *:not(button) a { text-decoration: none !important; }

/* HEADER & NAVIGATION */
header { background: #000; border-bottom: 1px solid rgba(20, 184, 166, 0.3); padding: 1.5rem 2rem; }
.header-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo-mark { font-size: 36px; font-weight: 900; letter-spacing: -2px; flex-shrink: 0; }
.logo-mark a { color: #14b8a6; text-decoration: none; }

/* HEADER SEARCH */
.header-search {
  display: none;
}

@media (min-width: 769px) {
  .header-search {
    display: block;
  }
  
  /* Desktop: show dropdown on hover */
  .nav-dropdown:hover .dropdown-menu {
    display: flex !important;
  }
}

.search-input {
  font-family: inherit;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  outline: none;
  background: rgba(20, 184, 166, 0.2);
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.3);
}

/* PAGINATION */
.page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid #14b8a6;
  color: #14b8a6;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.page-numbers:hover {
  background: #14b8a6;
  color: #000;
}

.page-numbers.current {
  background: #14b8a6;
  color: #000;
  border-color: #14b8a6;
}

.page-numbers.prev,
.page-numbers.next {
  margin: 0 1rem;
}
.nav-toggle { display: none; }
.hamburger-label { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger-line { width: 24px; height: 2.5px; background: #14b8a6; transition: all 0.3s ease; }

/* NAV MENU - DESKTOP */
.site-nav { display: flex; gap: 3rem; font-size: 12px; font-weight: 700; }
.nav-link { color: #b0b0b0; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; white-space: nowrap; border: none; background: none; cursor: pointer; padding: 0; font-family: inherit; font-weight: inherit; font-size: inherit; }
.nav-link:hover { color: #14b8a6; }

/* DROPDOWN MENU */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #0a0a0a;
  border: 1px solid #14b8a6;
  border-radius: 4px;
  min-width: 180px;
  padding-top: 0.5rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(20,184,166,0.2);
}

/* Open state (click-toggled via JS) */
.nav-dropdown.dropdown-open .dropdown-menu {
  display: flex;
  flex-direction: column;
}

/* Desktop hover also opens it (no gap now, so it won't vanish) */
@media (min-width: 769px) {
  .nav-dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
  }
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: #b0b0b0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: rgba(20,184,166,0.1);
  color: #14b8a6;
}

/* HERO */
.hero { background: #000; padding: 4rem 2rem; border-bottom: 3px solid #14b8a6; }
.hero-content { max-width: 1400px; margin: 0 auto; }
.hero-badge { display: inline-block; background: #14b8a6; color: #000; padding: 0.6rem 1.2rem; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2rem; }
.hero h1 { font-size: 72px; font-weight: 900; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -2px; max-width: 900px; }
.hero p { font-size: 18px; color: #a0a0a0; max-width: 550px; }

.container { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; }

/* SECTION TITLES */
.section-title { font-size: 42px; font-weight: 900; margin-bottom: 2.5rem; letter-spacing: -1px; position: relative; display: inline-block; }
.section-title::before { content: ''; position: absolute; left: -30px; top: 0; width: 8px; height: 60px; background: #14b8a6; transform: skewX(-15deg); }

/* FEATURED ARTICLES */
.featured-article { display: grid; grid-template-columns: 55% 1fr; gap: 3rem; margin-bottom: 5rem; align-items: start; }
.featured-image { background: linear-gradient(135deg, rgba(20,184,166,0.25) 0%, rgba(6,182,212,0.15) 100%); border: 3px solid #14b8a6; height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; transform: skewY(-2deg); background-size: contain; background-position: center; background-repeat: no-repeat; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* Article page featured images - blur background + clear image on top */
article .featured-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

article .featured-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(40px);
  opacity: 0.8;
  z-index: 1;
}

article .featured-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.3);
  z-index: 1.5;
}

article .featured-image img {
  position: relative;
  z-index: 2;
  object-fit: contain !important;
  max-width: 90%;
  max-height: 90%;
}
.featured-image svg { width: 100%; height: 100%; }

.article-content { padding-top: 1rem; }

/* Article paragraph spacing */
article p {
  margin-bottom: 1.5rem;
}
.category-tag { display: inline-block; color: #14b8a6; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.8rem; }
.article-headline { font-size: 44px; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; color: #fff; letter-spacing: -1px; }
.article-excerpt { font-size: 17px; color: #a8a8a8; margin-bottom: 2rem; line-height: 1.7; }
.author-block { background: rgba(20,184,166,0.1); border-left: 4px solid #14b8a6; padding: 1.5rem; display: flex; gap: 1.25rem; }
.author-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%); border: 2px solid #14b8a6; flex-shrink: 0; }
.author-name { font-weight: 800; font-size: 15px; color: #fff; }
.author-title { font-size: 12px; color: #14b8a6; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* GRIDS */
.asymmetric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-bottom: 5rem; }
.grid-item { position: relative; }
.grid-item:nth-child(2) { transform: translateY(60px); }
.grid-item:nth-child(3) { transform: translateY(-40px); }

.article-card { border: 2px solid rgba(20,184,166,0.3); overflow: hidden; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); cursor: pointer; }
.article-card:hover { border-color: #14b8a6; transform: scale(1.08); box-shadow: 0 12px 40px rgba(20,184,166,0.2); background: rgba(20,184,166,0.08); }

.card-image { background: linear-gradient(135deg, rgba(20,184,166,0.25) 0%, rgba(6,182,212,0.15) 100%); display: block; overflow: hidden; width: 100%; max-height: 280px; }
.card-image img { width: 100%; height: auto; display: block; }
.card-image svg { width: 100%; height: auto; }

.card-body { padding: 2rem; background: rgba(0,0,0,0.5); }
.card-category { color: #14b8a6; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.8rem; }
.card-headline { font-size: 22px; font-weight: 900; line-height: 1.2; margin-bottom: 1rem; color: #fff; }
.card-headline.opinion { font-style: italic; }
.card-excerpt { font-size: 14px; color: #8a8a8a; margin-bottom: 1.5rem; line-height: 1.6; }
.card-author { font-size: 12px; color: #14b8a6; font-weight: 700; text-transform: uppercase; }

/* QUOTE BOXES - PIZZAZZED */
.quote-break { 
  background: #14b8a6; 
  color: #000; 
  padding: 3rem; 
  margin: 4rem 0; 
  transform: skewX(-5deg); 
  position: relative; 
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.15);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

.quote-break:hover {
  transform: skewX(-5deg) scale(1.06) rotate(0.5deg);
  box-shadow: 0 20px 60px rgba(20, 184, 166, 0.4), 
              0 0 40px rgba(20, 184, 166, 0.3),
              inset 0 0 30px rgba(255, 255, 255, 0.15);
  background: #16c4ac;
}

.quote-break::before { 
  content: '"'; 
  position: absolute; 
  font-size: 280px; 
  font-weight: 900; 
  opacity: 0.15; 
  left: -20px; 
  top: -50px; 
  z-index: 0; 
  line-height: 1; 
  transition: all 0.5s ease;
}

.quote-break:hover::before {
  opacity: 0.25;
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
}

/* HOVER PROGRESS BAR */
.quote-break::after { 
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: linear-gradient(90deg, rgba(0,0,0,0.02) 0%, transparent 50%, rgba(0,0,0,0.02) 100%); 
  z-index: 0; 
  pointer-events: none; 
}

.quote-break.hovering::before {
  opacity: 0.25;
}

.quote-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #000;
  animation: none;
  z-index: 10;
}

.quote-progress.active {
  animation: fillBar 2s linear forwards;
}

@keyframes fillBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.quote-text { 
  font-size: 32px; 
  font-weight: 900; 
  line-height: 1.2; 
  position: relative; 
  z-index: 1; 
  max-width: 900px; 
}

.quote-hint {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* PULSING CHEVRON FOR MOBILE */
.quote-chevron {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: #000;
  opacity: 0;
  animation: none;
  z-index: 5;
  display: none;
  pointer-events: none;
}

.quote-chevron.show {
  display: block;
  animation: pulseChevron 2.5s ease-in-out infinite;
}

@keyframes pulseChevron {
  0%, 100% {
    opacity: 0.4;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) translateY(-8px);
  }
}

.quote-hint-desktop {
  display: none;
}

.quote-hint-mobile {
  display: none;
}

.quote-break:hover .quote-hint-desktop {
  display: inline;
  opacity: 1;
}

.quote-attr { 
  font-size: 13px; 
  font-weight: 700; 
  margin-top: 1rem; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  position: relative;
  z-index: 1;
}

.divider { height: 1px; background: linear-gradient(90deg, #14b8a6 0%, transparent 100%); margin: 4rem 0; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; margin-top: 2.5rem; perspective: 1000px; }
.team-card { position: relative; height: 400px; cursor: grab; user-select: none; -webkit-user-select: none; transition: transform 0.2s ease; }
.team-card:active { cursor: grabbing; cursor: -webkit-grabbing; opacity: 0.8; }
.team-card.dragging { opacity: 0.5; z-index: 1000; box-shadow: 0 20px 60px rgba(20,184,166,0.5); }
.team-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); transform-style: preserve-3d; }
.team-card.flipped .team-card-inner { transform: rotateY(180deg); }
.team-card-front, .team-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid rgba(20,184,166,0.3); padding: 2rem; text-align: center; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); background: rgba(20,184,166,0.02); }
.team-card:hover .team-card-front, .team-card:hover .team-card-back { border-color: #14b8a6; box-shadow: 0 16px 48px rgba(20,184,166,0.25); background: rgba(20,184,166,0.08); }
.team-card-back { transform: rotateY(180deg); overflow-y: auto; }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%); margin: 0 auto 1.5rem; border: 3px solid #14b8a6; flex-shrink: 0; }
.team-name { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 0.5rem; }
.team-role { font-size: 12px; color: #14b8a6; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.team-cta { font-size: 12px; color: #06b6d4; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-top: auto; animation: pulse-cta 2s ease-in-out infinite; }
@keyframes pulse-cta { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.team-grid.list-view { grid-template-columns: 1fr; gap: 1.5rem; }
.team-grid.list-view .team-card { height: auto; }
.team-grid.list-view .team-card-inner { transform: none !important; }
.team-grid.list-view .team-card.flipped .team-card-inner { transform: none !important; }
.team-grid.list-view .team-card-front, .team-grid.list-view .team-card-back { position: static; backface-visibility: auto; flex-direction: row; gap: 2rem; text-align: left; }
.team-grid.list-view .team-card-back { display: none; }
.team-grid.list-view .team-card-front { align-items: flex-start; }
.team-grid.list-view .team-avatar { width: 120px; height: 120px; margin: 0; flex-shrink: 0; }

footer { background: #000; border-top: 2px solid #14b8a6; padding: 3rem 2rem; text-align: center; font-size: 12px; color: #707070; }

/* SIGNUP MODAL */
.signup-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

.signup-modal.show {
  display: flex;
}

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

.signup-modal-content {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  padding: 3rem;
  border: 3px solid #06b6d4;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 60px rgba(20, 184, 166, 0.5), inset 0 0 40px rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.signup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 32px;
  color: #000;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s;
}

.signup-close:hover {
  transform: rotate(90deg);
}

.signup-modal h2 {
  font-size: 28px;
  font-weight: 900;
  color: #000;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.signup-modal p {
  font-size: 16px;
  color: #000;
  margin-bottom: 2rem;
  font-weight: 600;
  font-style: italic;
}

@media (max-width: 768px) {
  /* SHOW hamburger, HIDE horizontal nav */
  .hamburger-label {
    display: flex !important;
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 1002;
  }
  
  .site-nav {
    display: none;
  }
  
  /* When checkbox is checked, show nav as dropdown */
  .nav-toggle:checked ~ .site-nav {
    display: flex;
    position: fixed;
    top: 60px;
    right: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    background: #000;
    padding: 2rem;
    border: 2px solid #14b8a6;
    z-index: 1001;
    width: auto;
  }
  
  /* Make dropdown visible and clickable in tablet hamburger menu */
  .nav-toggle:checked ~ .site-nav .dropdown-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    border: none;
    background: rgba(20,184,166,0.08);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: none;
    min-width: auto;
  }
  
  .nav-toggle:checked ~ .site-nav .dropdown-item {
    padding: 10px 14px;
    font-size: 11px;
  }
  
  .header-content {
    padding: 0;
  }
  
  header {
    padding: 1.5rem 2rem;
  }
  
  /* FIX: Container padding on mobile */
  .container {
    padding: 3rem 1.5rem;
  }
  
  /* Prevent horizontal scrolling */
  body, html {
    overflow-x: hidden;
    width: 100%;
  }
  
  .signup-modal-content {
    padding: 2rem 1.5rem;
    border: 2px solid #06b6d4;
  }
  
  .signup-close {
    top: 1rem;
    right: 1rem;
    font-size: 28px;
  }
  
  .signup-modal h2 {
    font-size: 24px;
    margin-bottom: 1rem;
  }
  
  .signup-modal p {
    font-size: 14px;
    margin-bottom: 1.5rem;
  }
  
  /* FIX: Stack featured-article (Now, Latest Episode) on tablet */
  .featured-article {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* FIX: Stack asymmetric-grid (Visual Content) on tablet */
  .asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .signup-modal-content {
    padding: 1.5rem 1rem;
    max-width: 95%;
    border: 2px solid #06b6d4;
  }
  
  .signup-close {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 24px;
  }
  
  .signup-modal h2 {
    font-size: 20px;
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }
  
  .signup-modal p {
    font-size: 13px;
    margin-bottom: 1rem;
  }
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.signup-form input {
  padding: 1rem;
  border: 2px solid #000;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.signup-form input::placeholder {
  color: #666;
}

.signup-form input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(20, 184, 166, 0.2);
}

.signup-form button {
  padding: 1rem;
  background: #000;
  color: #14b8a6;
  border: 3px solid #000;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.signup-form button:hover {
  background: #14b8a6;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.3);
}

@media (max-width: 768px) {
  .signup-form input {
    padding: 0.85rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .signup-form button {
    padding: 0.85rem;
    font-size: 13px;
    letter-spacing: 1px;
  }
}

@media (max-width: 480px) {
  .signup-form {
    gap: 0.75rem;
  }
  
  .signup-form input {
    padding: 0.75rem;
    font-size: 16px;
  }
  
  .signup-form button {
    padding: 0.75rem;
    font-size: 12px;
    letter-spacing: 0.5px;
  }
}

/* MOBILE SUCCESS MODAL */
@media (max-width: 768px) {
  .success-modal-content {
    padding: 2rem 1.5rem;
    max-width: 90vw;
  }
  
  .success-close {
    top: 1rem;
    right: 1rem;
    font-size: 28px;
  }
  
  .success-handshake {
    font-size: 80px;
    margin-bottom: 0.75rem;
  }
  
  .success-modal-content h2 {
    font-size: 24px;
    margin-bottom: 0.75rem;
  }
  
  .success-name-display {
    font-size: 24px;
    margin: 0.5rem 0 !important;
  }
  
  .success-modal-content p {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .success-modal-content {
    padding: 1.5rem 1rem;
    border: 2px solid #06b6d4;
  }
  
  .success-close {
    top: 0.75rem;
    right: 0.75rem;
    font-size: 24px;
  }
  
  .success-handshake {
    font-size: 60px;
    margin-bottom: 0.5rem;
  }
  
  .success-modal-content h2 {
    font-size: 20px;
    margin-bottom: 0.5rem;
  }
  
  .success-name-display {
    font-size: 20px;
    margin: 0.5rem 0 !important;
  }
  
  .success-modal-content p {
    font-size: 20px;
    margin: 0.5rem 0 !important;
  }
}

/* SUCCESS MODAL - OPTION 2: SIDE SWEEP */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0a;
  z-index: 2001;
  justify-content: center;
  align-items: center;
  animation: fadeInClean 0.4s ease;
  overflow: hidden;
}

@keyframes fadeInClean {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-modal.show {
  display: flex !important;
}

.success-content {
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 2rem;
}

.success-title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInText 0.6s ease 0.2s both;
}

.success-name {
  font-size: 48px;
  font-weight: 900;
  color: #14b8a6;
  margin: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: fadeInText 0.6s ease 0.4s both;
}

.success-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #ccc;
  margin: 1rem 0 0;
  letter-spacing: 1px;
  animation: fadeInText 0.6s ease 0.6s both;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s;
  z-index: 2002;
}

.success-close:hover {
  transform: rotate(90deg);
}

/* SIDE SWEEP CONFETTI */
.confetti-sweep {
  position: fixed;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 5;
  background: #06b6d4;
  border-radius: 50%;
}

.confetti-sweep.teal {
  background: #14b8a6;
  box-shadow: 0 0 15px #14b8a6;
}

.confetti-sweep.dark {
  background: #0a0a0a;
}

.confetti-sweep.bright {
  background: #06b6d4;
  box-shadow: 0 0 20px #06b6d4;
}

.confetti-sweep.from-left {
  animation: sweepFromLeft 2.5s ease-out forwards;
}

.confetti-sweep.from-right {
  animation: sweepFromRight 2.5s ease-out forwards;
}

@keyframes sweepFromLeft {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(800px) translateY(-300px);
  }
}

@keyframes sweepFromRight {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-800px) translateY(-300px);
  }
}

@media (max-width: 768px) {
  .asymmetric-grid { grid-template-columns: 1fr; gap: 2rem; }
  .article-headline { font-size: 24px; }
  .article-excerpt { font-size: 15px; }
  
  .section-title { font-size: 32px; }
  .section-title::before { height: 45px; left: -22px; }
  
  .team-grid { grid-template-columns: 1fr; }
  .team-avatar { width: 80px; height: 80px; }
  .team-name { font-size: 18px; }
  
  .quote-break { padding: 2rem 1.5rem 3.5rem; transform: skewX(0); }
  .quote-break:hover { transform: scale(1.08) rotate(1deg); }
  .quote-break::before { font-size: 200px; left: -25px; top: -45px; }
  .quote-hint {
    font-size: 9px;
    top: 10px;
  }
  .quote-text { font-size: 20px; max-width: 100%; }
  
  .card-headline { font-size: 18px; }
  .card-excerpt { font-size: 13px; }
}

@media (max-width: 480px) {
  /* Mobile hamburger */
  .hamburger-label {
    display: flex !important;
    position: fixed;
    top: 0.8rem;
    right: 1rem;
    z-index: 1002;
  }
  
  .site-nav {
    display: none;
  }
  
  .nav-toggle:checked ~ .site-nav {
    display: flex;
    position: fixed;
    top: 60px;
    right: 1rem;
    flex-direction: column;
    gap: 1rem;
    background: #000;
    padding: 1.5rem;
    border: 2px solid #14b8a6;
    z-index: 1001;
    width: auto;
  }
  
  /* Make dropdown visible and clickable in mobile hamburger menu */
  .nav-toggle:checked ~ .site-nav .dropdown-menu {
    display: flex !important;
    flex-direction: column;
    position: static;
    border: none;
    background: rgba(20,184,166,0.08);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: none;
    min-width: auto;
  }
  
  .nav-toggle:checked ~ .site-nav .dropdown-item {
    padding: 8px 12px;
    font-size: 10px;
  }
  
  .container { padding: 2rem 1rem; }
  .hero { padding: 2rem 1rem; }
  .hero h1 { font-size: 32px; line-height: 1.1; }
  .hero p { font-size: 14px; }
  
  header { padding: 0.8rem 1rem; }
  .logo-mark { font-size: 20px; }
  
  /* FIX: Stack featured article on mobile */
  .featured-article { grid-template-columns: 1fr; gap: 1.5rem; width: 100%; }
  
  .featured-image { height: 300px; width: 100%; }
  
  .section-title { font-size: 24px; }
  .section-title::before { height: 35px; left: -18px; width: 6px; }
  
  .team-grid { grid-template-columns: 1fr; }
  .team-avatar { width: 70px; height: 70px; }
  
  .quote-break { padding: 1.5rem 1rem 3rem; }
  .quote-break::before { font-size: 140px; left: -15px; top: -35px; }
  .quote-hint {
    font-size: 8px;
    top: 8px;
  }
  .quote-chevron.show {
    display: block;
  }
  .quote-text { font-size: 16px; }
  .card-headline { font-size: 16px; }
  .article-headline { font-size: 18px; }
}
