/* main.css – Complete consolidated & optimized version */

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2288aa;
  --accent: #149FEF;
  --dark: #0a0a0f;
  --text: #e0e0e0;
  --light-bg: #c7e4d6;
  --table-green: #008000;
  --white: #ffffff;
  --spacing: 1.5rem;
  --font-base: 'Roboto', 'Dosis', Arial, sans-serif;
  --font-heading: 'Bebas Neue', Impact, Arial Black, sans-serif;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/bebas-neue-v16-latin-regular.woff2') format('woff2');
    font-weight: normal;     /* or 400 if you prefer explicit */
    font-style: normal;
    font-display: swap;      /* This is crucial — shows fallback font immediately, prevents invisible text (FOIT) */
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
}

/* ==========================================================================
   Navbar – Slimmed down
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 0.5rem 2rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.25rem;
  font-weight: 400;
  color: #e0e0e0;
  height: auto;
  min-height: 56px;
}

.nav-item {
  color: #e0e0e0;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover,
.nav-item:focus {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255,255,255,0.5);
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.nav-item:hover::after {
  width: 80%;
}

/* Dropdown – left-aligned */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(15, 15, 25, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0;
  z-index: 999;
  left: -8px;
  margin-top: 4px;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.25s ease;
}

.dropdown-content a {
  display: block;
  padding: 0.9rem 1.5rem;
  color: #ddd;
  text-decoration: none;
  font-size: 1.15rem;
  transition: all 0.2s;
}

.dropdown-content a:hover {
  background: rgba(0,170,255,0.15);
  color: white;
  padding-left: 2rem;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 28px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(15, 15, 25, 0.98);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  height: 65vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 90%;
  padding: 2rem;
  background: rgba(0,0,0,0.5);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 11.2vw, 8.8rem);   /* ≈80% of previous max size */
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 5px 5px 15px #000, 0 0 25px rgba(255,255,255,0.2);
  margin: 0;
  line-height: 0.9;
  color: white;
  text-align: center;                         /* already centered, just making sure */
}

.main-subtitle {
  font-size: clamp(1.05rem, 4.2vw, 1.96rem);  /* ≈70% of previous max size */
  max-width: 800px;
  margin: 0.8rem auto 0;                      /* slightly tighter spacing */
  line-height: 1.3;
  text-align: center;                         /* explicitly centered */
}

/* ==========================================================================
   Action Buttons – Modern pure CSS
   ========================================================================== */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin: 2.5rem 0;
  padding: 1rem;
}

.cta-btn {
  min-width: 280px;
  padding: 1.2rem 3rem;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 50%, #0050cc 100%);
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
}

.cta-btn:hover,
.cta-btn:focus {
  transform: translateY(-8px);
  box-shadow: 
    0 16px 40px rgba(0,114,255,0.7),
    inset 0 1px 0 rgba(255,255,255,0.25);
  background: linear-gradient(135deg, #00eaff 0%, #0095ff 50%, #0066ff 100%);
}

.cta-btn.secondary {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 50%, #e84118 100%);
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.cta-btn.secondary:hover,
.cta-btn.secondary:focus {
  transform: translateY(-8px);
  box-shadow: 
    0 16px 40px rgba(255,71,87,0.7),
    inset 0 1px 0 rgba(255,255,255,0.25);
  background: linear-gradient(135deg, #ff8787 0%, #ff6b6b 50%, #ff4757 100%);
}

/* ==========================================================================
   Intro Text (below video)
   ========================================================================== */
.intro-section {
  background: var(--light-bg);
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.intro-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.35;
}

/* ==========================================================================
   Content / News – Unified dark cards (public & admin)
   ========================================================================== */
.content-section {
  padding: 3rem 1rem;
  background: var(--light-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.mainview {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

.news-container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.news-card {
  background: #0f0f15;
  color: #e0e0e0;
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.news-card-inner {
  padding: 1.8rem 2rem;
}

.news-date {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.news-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #00aaff;
  margin: 0 0 0.8rem;
  line-height: 1.25;
}

.news-updated {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1rem;
}

.news-article {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d0d0d0;
}

/* Admin news tweaks – fully dark, matching public cards */
.admin-create-card,
.admin-news-item {
  background: #0f0f15;
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  transition: transform 0.25s, box-shadow 0.25s;
}

.admin-create-card:hover,
.admin-news-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.admin-news-form {
  margin: 0;
  padding: 0;
}

.admin-title-input,
.admin-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1rem;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 1.1rem;
  font-family: 'Segoe UI', sans-serif;
}

.admin-textarea {
  min-height: 180px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.btn-create,
.btn-update,
.btn-delete {
  padding: 0.85rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.btn-create,
.btn-update {
  background: #00aaff;
  color: white;
}

.btn-create:hover,
.btn-update:hover {
  background: #0088dd;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,170,255,0.4);
}

.btn-delete {
  background: #ff4757;
  color: white;
}

.btn-delete:hover {
  background: #e84118;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,71,87,0.4);
}

.admin-msg {
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.admin-msg.success {
  background: #2ecc71;
  color: white;
}

.admin-msg.error {
  background: #e74c3c;
  color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#site-footer {
  background: #0f0f15;
  color: #bbb;
  padding: 3.5rem 1rem 2rem;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  padding: 0 1rem;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: 0.06em;
}

.social-links.horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links.horizontal li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.25s;
  font-size: 1rem;
}

.social-links.horizontal li a:hover {
  color: var(--accent);
}

.footer-links, .footer-nav-links {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a, .footer-nav-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-links a:hover, .footer-nav-links a:hover {
  color: var(--accent);
}

#site-footer-nav {
  border-top: 1px solid #222;
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

/* ==========================================================================
   Responsive & Animations
   ========================================================================== */
@media (max-width: 900px) {
  .navbar {
    gap: 1.5rem;
    font-size: 1.15rem;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    min-height: 50px;
  }

  .nav-item {
    padding: 0.4rem 0.8rem;
  }

  .dropdown-content {
    left: 0;
    right: 0;
    width: auto;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .hero { height: 60vh; min-height: 420px; }
  .hero-overlay { padding: 1.5rem; gap: 1.2rem; }
  .action-buttons { flex-direction: column; align-items: center; }
  .footer-container { flex-direction: column; gap: 2.5rem; text-align: center; }
  .footer-nav-container { flex-direction: column; gap: 1rem; }
}

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



/* Shop Page – Grid Layout & Styling */
.shop-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.shop-header {
  text-align: center;
  margin-bottom: 3rem;
}

.shop-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 6rem);
  color: white;
  margin: 0 0 0.8rem;
  text-shadow: 3px 3px 12px #000;
}

.shop-subtitle {
  font-size: 1.4rem;
  color: #ccc;
  margin: 0 0 1rem;
}

.shop-message {
  font-size: 1.2rem;
  color: #2ecc71;
  font-weight: 500;
  margin: 1rem 0;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 1.5rem;
}

.shop-item {
  background: #e8e8e8;              /* light gray – soft and modern */
  color: #1a1a1a;                   /* dark text for contrast */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);  /* lighter shadow for light bg */
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
  padding: 1.5rem 1rem;
}

.shop-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}

/* Adjust text/icon colors for light background */
.shop-item .news-title,
.shop-item h3 {
  color: #0066cc;                   /* darker blue for titles */
}

.shop-item .shop-message,
.shop-item p {
  color: #333;
}

/* Optional: subtle border for definition */
.shop-item {
  border: 1px solid #d0d0d0;
}


/* Darker, premium shop header */
.shop-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 6rem);
  color: #1a1a1a;                    /* dark gray-black – high contrast on light bg */
  margin: 0 0 0.6rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.25);
  letter-spacing: 0.04em;
}

.shop-subtitle {
  font-size: 1.4rem;
  color: #2c2c2c;                    /* darker gray */
  margin: 0 0 1rem;
  font-weight: 500;
}

.shop-subtitle i.fa-lock {
  color: #0066cc;                    /* blue accent for secure icon */
  margin-right: 0.6rem;
  font-size: 1.1em;
  vertical-align: middle;
}

.shop-message {
  font-size: 1.2rem;
  color: #2c2c2c;
  font-weight: 500;
  margin: 1rem 0;
  background: rgba(255,255,255,0.7);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
}


.legal-page {
  background: #f7f7f8;
  padding: 6rem 1.5rem;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3.5rem 4rem;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color: #1f2937; /* ChatGPT-like dark gray */
  line-height: 1.75;
}

.legal-container h1 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
}

.legal-container h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-container p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.legal-container ul {
  margin: 1.2rem 0 1.5rem 1.4rem;
}

.legal-container li {
  margin-bottom: 0.6rem;
}

.legal-intro {
  font-size: 1.15rem;
  color: #374151;
}

.legal-footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
}


.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 15px;
}

.auth-btn {
    display: flex;
    justify-content: center;
    width: 260px;   /* forces both to same width */
}

/* Make Google button fill container */
.google-btn > div {
    width: 100% !important;
}

/* Make Facebook button fill container */
.fb-btn .fb-login-button {
    width: 100% !important;
}

/* Stack on small screens */
@media (max-width: 560px) {
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Account page tab buttons */
.account-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.account-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #d9dee5;
  border-radius: 10px;
  background: #f7f8fa;
  color: #4b5563;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.account-tab-btn:hover {
  background: #eef2f6;
  color: #1f2937;
  border-color: #cfd6de;
}

.account-tab-btn::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: #1f2937;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.account-tab-btn.is-active,
.account-tab-btn.active {
  background: #ffffff;
  color: #111827;
  border-color: #cfd6de;
}

.account-tab-btn.is-active::after,
.account-tab-btn.active::after {
  transform: scaleX(1);
}
