/* PREMIUM CSS STYLES - GLOBAL VOICES 2026 */

:root {
  --primary: #19355d;
  --primary-hover: #112440;
  --secondary: #fcc218;
  --secondary-hover: #e0ab15;
  --bg-color: #ebebeb;
  --text-dark: #19355d;
  --text-muted: #64748b;
  --surface: #ffffff;
  --border: #e2e8f0;
  --error: #ef4444;
  --success: #10b981;
  
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-dark);
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  gap: 0.5rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(25, 53, 93, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25, 53, 93, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-dark);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--secondary-hover);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-glass:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25,53,93,0.85) 0%, rgba(25,53,93,0.65) 100%);
  z-index: 1;
}

.hero-blur-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.4;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #ffffff;
  bottom: -50px;
  right: -50px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: white;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(to right, #fcc218, #ffe58f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Countdown */
.countdown-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.countdown-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.countdown-label {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-unit span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.countdown-unit small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.countdown-sep {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--border);
  margin-top: -1rem;
}

/* Status Banners */
.status-banner {
  background: #fffbea;
  border-bottom: 1px solid #fef08a;
  padding: 2rem 1rem;
  text-align: center;
}

.status-inner {
  max-width: 600px;
  margin: 0 auto;
}

.status-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.status-banner h2 {
  font-family: var(--font-body);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #854d0e;
}

.status-banner p {
  color: #a16207;
}

/* Tabs Nav */
.tabs-nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  padding: 1rem;
}

.tabs-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  background: var(--surface);
  color: var(--text-dark);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Main Content Area */
.tab-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

/* Category Filter */
.category-filter {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.filter-inner label {
  font-weight: 500;
  color: var(--text-muted);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.5s ease backwards;
}

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

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  transition: background 0.3s;
}

.gallery-card:hover .gallery-card-play {
  background: rgba(0,0,0,0.8);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-caption {
  color: white;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.gallery-card-author {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}

/* Empty / Loading States */
.empty-state, .gallery-loading {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.empty-icon {
  color: var(--border);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

.load-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Forms */
.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 53, 93, 0.15);
}

.char-count {
  position: absolute;
  bottom: -1.2rem;
  right: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.2s;
  margin-bottom: 1.5rem;
  background: var(--bg-color);
  overflow: hidden;
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(25, 53, 93, 0.05);
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  pointer-events: none;
}

.upload-placeholder svg {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.upload-preview {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 20;
}

.upload-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.upload-preview video {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  background: #000;
}

.remove-photo-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.remove-photo-btn:hover {
  background: rgba(0,0,0,0.8);
}

/* Form Error */
.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Success State */
.success-content {
  text-align: center;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.success-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.success-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.success-photo-wrap {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.success-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.success-photo-wrap video {
  width: 100%;
  max-height: 400px;
  display: block;
  background: #000;
}

/* Share Section */
.share-section {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.share-section h3, .bonus-panel h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.share-url-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.share-url-row input {
  background: var(--surface);
  margin-bottom: 0;
}

.share-btns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  flex: 1;
  justify-content: center;
}

.share-fb { background: #1877f2; }
.share-fb:hover { background: #166fe5; }
.share-tw { background: #000000; }
.share-tw:hover { background: #333333; }

.bonus-panel {
  background: #fef9c3; /* matching the yellow secondary color */
  border: 1px solid #fde047;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.bonus-panel p {
  color: #854d0e;
  margin-bottom: 1rem;
}

.bonus-panel strong {
  color: #a16207;
  font-size: 1.2rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
}

.lightbox-container {
  position: relative;
  z-index: 1001;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.lightbox-image-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin-bottom: 2rem;
}

.lightbox-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-image-wrap video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  background: #000;
}

.lightbox-info {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-shrink: 0;
}

.lightbox-meta {
  flex: 1;
}

.lightbox-meta h3 {
  color: white;
  font-family: var(--font-body);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.lightbox-author {
  color: rgba(255,255,255,0.6);
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lightbox-share-btns {
  display: flex;
  gap: 0.5rem;
}

.lightbox-share-btns .btn-glass {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.1);
}

.lightbox-share-btns .btn-glass:hover {
  background: rgba(255,255,255,0.2);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: var(--text-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Powered By */
#wbx-powered-by-slot {
  margin: 3rem auto;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .form-row { flex-direction: column; }
  .lightbox-content { padding: 4rem 1rem 1rem; }
  .lightbox-info { flex-direction: column; align-items: stretch; text-align: center; }
  .lightbox-actions { flex-direction: column; }
  .lightbox-nav { top: auto; bottom: 2rem; }
  .lightbox-prev { left: 2rem; }
  .lightbox-next { right: 2rem; }
  .lightbox-close { top: 1rem; right: 1rem; }
  .share-url-row { flex-direction: column; }
}
