

/* Base Styles V1.1 FIXED LAYOUT */  /* <--- ADD THIS LINE (or similar) */
:root {
  --primary-glow: rgba(0, 212, 255, 0.6);
  --secondary-glow: rgba(2, 136, 209, 0.5);
  --text-primary: #e8eaf6;
  --text-secondary: #90caf9;
  --bg-dark: #0a0e1a;
  --bg-darker: #020308;
  --accent-blue: #00d4ff;
  --accent-vivid: #ff8f00; /* A vivid amber/orange */
  --vivid-glow: rgba(255, 143, 0, 0.5); /* A matching glow */
}



/* Wide Color Gamut support for modern displays */
@media (color-gamut: p3) {
  :root {
    --accent-blue: color(display-p3 0 0.83 1);
    --primary-glow: color(display-p3 0 0.83 1 / 0.6);
  }
}

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

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

html, body {
  /* Keep the gradient for the main content area */
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%); 
  
  /* *** FINAL FIX: Add a solid background color to catch the zoom/pinch area *** */
  background-color: var(--bg-darker); 
  
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  position: relative;
}

/* Animated Sweeping Lines */
.sweep-line {
    content: '';
    position: fixed;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-glow), transparent);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    box-shadow: 0 0 10px var(--primary-glow);
}

.sweep-line.one { top: -100%; animation: verticalSweep 25s linear infinite; }
.sweep-line.two { top: -100%; animation: verticalSweep 35s linear infinite; animation-delay: 12s; }
.sweep-line.three { bottom: -100%; top: auto; height: 1px; opacity: 0.4; animation: verticalSweepUp 40s linear infinite; animation-delay: 5s; }
.sweep-line.four { top: -100%; animation: verticalSweep 45s linear infinite; animation-delay: 20s; opacity: 0.5; }

@keyframes verticalSweep { 0% { top: -10%; } 100% { top: 110%; } }
@keyframes verticalSweepUp { 0% { bottom: -10%; } 100% { bottom: 110%; } }


/* Loading Screen */
.loading-overlay {
  position: fixed; 
  inset: 0; 
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  display: flex;
  align-items: center; 
  justify-content: center; 
  z-index: 100000;
  flex-direction: column; 
  transition: opacity 0.8s ease-out;
}
.loading-video { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 0.7;
  /* Fallback for when video doesn't load */
  background: var(--bg-darker);
}
.loading-text {
  font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900;
  background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 30%, #00e5ff 60%, #4fc3f7 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: pulse 2s ease-in-out infinite, shimmer 3s linear infinite;
  z-index: 1; margin-bottom: 20px; filter: drop-shadow(0 0 20px var(--primary-glow));
}
.loading-spinner { 
  width: 60px; 
  height: 60px; 
  border: 3px solid rgba(79, 195, 247, 0.1);
  border-top: 3px solid var(--accent-blue);
  border-radius: 50%;
  animation: netflixSpin 1s linear infinite;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  z-index: 1;  /* Add this */
  position: relative;  /* Add this */
}
@keyframes netflixSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-subtext { 
  margin-top: 20px; 
  font-size: 1rem; 
  color: var(--text-secondary); 
  letter-spacing: 1px; 
  z-index: 1; 
  opacity: 0.8;
  position: relative;  /* Add this */
}

/* Loading Screen */
.loading-overlay {
  /* ... styles ... */
}
.loading-spinner {
  /* ... styles ... */
}
.loading-subtext {
  /* ... styles ... */
}

/* THIS IS A GREAT PLACE FOR THIS RULE */
.loader-hidden #loading {
  display: none !important;
}

/* Header */
header {
  /* ... styles ... */
}

/* Header */
header {
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.8) 0%, rgba(2, 3, 8, 0.9) 100%);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--primary-glow); text-align: center;
  padding: 40px 20px 35px; position: relative; z-index: 10; overflow: hidden;
}
header::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0, rgba(79, 195, 247, 0.15), transparent 60%);
  pointer-events: none; animation: headerGlow 8s ease-in-out infinite alternate;
}
/* Near line 155 in your style.css */
header h1 {
  font-size: clamp(2rem, 5vw, 3rem); 
  font-weight: 900;
  /* ... existing gradient and clip styles ... */
  margin-bottom: 8px; 
  letter-spacing: -1px; 
  text-transform: uppercase; 
  line-height: 1.1;
  
  /* CRITICAL ADDITION: Center the text itself */
  text-align: center; 
}
.header-subtitle { font-size: clamp(0.8rem, 1.6vw, 1rem); color: var(--text-secondary); font-weight: 300; letter-spacing: 3px; text-transform: uppercase; }

/* Sections & Video Grid */
main { padding-top: 10px; }
section { padding: 25px 0; animation: fadeIn 0.8s ease-out forwards; position: relative; z-index: 1; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

section h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-vivid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 15px 50px;
  text-align: left;
}

.scroll-container { position: relative; margin: 0 auto; }
.scroll-wrapper { display: flex; gap: 15px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 30px 50px; }
.scroll-wrapper::-webkit-scrollbar { display: none; }

.scroll-wrapper { 
  display: flex; 
  gap: 15px; 
  overflow-x: auto; 
  scroll-behavior: smooth; 
  scrollbar-width: none; 
  padding: 30px 50px;
  /* Enhanced smooth scrolling */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding: 50px;
}

/* Optional: Add snap points to cards for smoother stops */
.video-card {
  scroll-snap-align: start;
}

/* --- Video Card --- */
/* Target all anchor elements within the card that might be picking up default link styles */
.video-card, .video-card h3, .video-card p {
    text-decoration: none !important;
}

.video-card {
  flex-shrink: 0; width: 300px; height: 320px; background: #060c18;
  border: 1px solid rgba(79, 195, 247, 0.2); border-radius: 12px;
  overflow: hidden; position: relative; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex; flex-direction: column; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.shorts-card { width: 200px; height: 300px; }
.thumbnail-wrapper {
    width: 100%; height: 100%; position: relative; overflow: hidden;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0; border-radius: 12px;
}
.video-thumbnail {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    transition: opacity 0.4s ease, transform 0.4s ease; position: relative; z-index: 1;
}
.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%; /* Adjust this value to shift headroom down */
    background-color: #000;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.play-icon {
  position: absolute; top: 15px; right: 15px; width: 50px; height: 50px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 100, 100, 0.3); transform: scale(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); opacity: 0; z-index: 2;
}
.play-icon:hover { 
  background: rgba(255, 255, 255, 0.35); 
  transform: scale(1.1); 
  border-color: rgba(255, 255, 255, 0.8);
}

.play-icon svg { width: 24px; height: 24px; fill: white; margin-left: 4px; }

.thumbnail-title {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  
  /* DEFAULT FOR DESKTOP/TABLET: Indent 65px to clear the scroll arrow/play button */
  padding: 25px 15px 15px 65px; /* Indent applied by default */
  
  background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, transparent 100%);
  color: #fff; 
  font-size: 1rem; 
  font-weight: 700; 
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9); 
  transition: all 0.4s ease; 
  z-index: 2;
  text-decoration: none; 
}

.description-wrapper { flex-grow: 1; display: flex; align-items: flex-start; justify-content: center; padding: 10px 15px; overflow: hidden; }
.video-description {
  text-align: center; font-size: 0.9rem; color: #d0d8e0; opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s ease-out 0.1s, transform 0.3s ease-out 0.1s;
  /* CSS FIX: ENSURE DESCRIPTION TEXT IS NOT UNDERLINED */
  text-decoration: none; 
}

/* Hover & Expanded States */
.video-card:hover { transform: translateY(-5px) scale(1.05); z-index: 20;  border-color: var(--vivid-glow);}
.video-card.expanded { transform: translateY(-5px) scale(1.05); z-index: 20; border-color: rgba(79, 195, 247, 0.5); }
.video-card:hover .video-thumbnail, .video-card.expanded .video-thumbnail { transform: scale(1.05); }
.video-card:not(.no-video-preview):hover .video-preview,
.video-card:not(.no-video-preview).expanded .video-preview { opacity: 1; z-index: 1; }
.video-card:not(.no-video-preview):hover .video-thumbnail,
.video-card:not(.no-video-preview).expanded .video-thumbnail { opacity: 0; }
.video-card.expanded .play-icon, .video-card:hover .play-icon { transform: scale(1); opacity: 1; }
.video-card.expanded .thumbnail-wrapper, .video-card:hover .thumbnail-wrapper { height: 55%; border-radius: 12px 12px 0 0; }
.video-card.expanded .video-description, .video-card:hover .video-description { opacity: 1; transform: translateY(0); }

/* Arrows & Theater */

/* 1. Correct the main scroll-arrow styles */

.scroll-arrow {
  position: absolute; 
  top: 50%; /* Center the arrow vertically */
  transform: translateY(-50%); /* Pull it up by half its height */
  bottom: auto; 
  
  /* Retain all other styles for appearance */
  background: rgba(2, 136, 209, 0.2);
  border: 1px solid rgba(79, 195, 247, 0.3); 
  color: #4fc3f7; 
  width: 40px; 
  height: 40px; 
  border-radius: 50%;
  font-size: 18px; 
  cursor: pointer; 
  transition: all 0.3s ease; 
  z-index: 30;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  backdrop-filter: blur(10px);
}
/* Ensure these two simple rules are present immediately after */
.arrow-left { 
    left: 5px; 
    right: auto;
}
.arrow-right { 
    right: 5px; 
    left: auto;
}

/* Find this block and ensure it is correct */
.theater-mode {
  position: fixed; 
  inset: 0; /* CRITICAL: Fills the entire screen */
  background: rgba(0, 0, 0, 0.9); 
  backdrop-filter: blur(20px);
  z-index: 10000; 
  display: none; 
  justify-content: center; 
  align-items: center; 
  animation: fadeIn 0.3s ease;
}

/* Find this block and ensure it is correct */
.theater-content { 
  position: relative; 
  width: 90vw; 
  max-width: 1200px; /* Limit max size on large screens */
  height: auto; /* Let aspect ratio control height */
  aspect-ratio: 16/9; 
  background: #000; 
  margin: 0;
  padding: 0;
}


/* Portrait mode for shorts */
.theater-content.portrait {
  aspect-ratio: 9/16;
  width: auto;
  height: 85vh;
  max-width: calc(85vh * 9 / 16);
  max-height: 85vh;
}

.theater-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  max-height: 90vh; /* Prevent oversized players */
}

.theater-close {
  position: fixed; 
  bottom: 80px !important; /* Moved higher to avoid YouTube controls */
  right: 20px !important; 
  top: auto !important;
  
  background: rgba(255, 255, 255, 0.1);
  border: none; 
  color: #fff; 
  width: 44px; 
  height: 44px; 
  border-radius: 50%;
  font-size: 1.5rem; 
  cursor: pointer; 
  z-index: 10002 !important;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  transition: all 0.3s ease;
}

/* Adjust for mobile devices - even higher to clear YouTube controls */
@media (max-width: 768px) {
  .theater-close {
    bottom: 100px !important; /* Higher on mobile */
  }
}

/* For landscape orientation, can be a bit lower */
@media (max-width: 768px) and (orientation: landscape) {
  .theater-close {
    bottom: 60px !important; /* Lower in landscape since more space */
  }
}

.theater-close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg) scale(1.1); }

/* About & Footer */
.about-section { background: transparent; padding: 50px 20px; }
.about-content { max-width: 900px; margin: 0 auto; text-align: center; }
.about-content h2 { text-align: center; margin: 0 0 30px; }
.about-content p { font-size: 1.1rem; line-height: 1.8; color: #b0bec5; margin-bottom: 20px; }
.about-content h3 { color: #4fc3f7; font-size: 1.6rem; margin: 50px 0 30px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 25px; margin-top: 40px; }
.tool-item {
  background: linear-gradient(135deg, rgba(2, 136, 209, 0.1) 0%, rgba(79, 195, 247, 0.05) 100%);
  padding: 30px 20px; border-radius: 16px; border: 1px solid rgba(79, 195, 247, 0.2);
  transition: all 0.4s ease; text-decoration: none; color: inherit;
}
.tool-item:hover { transform: translateY(-8px); border-color: rgba(79, 195, 247, 0.5); box-shadow: 0 12px 30px var(--secondary-glow); }
.tool-name { font-weight: 700; color: #fff; font-size: 1.1rem; }
.tool-type { font-size: 0.9rem; color: var(--text-secondary); }
footer {
  background: linear-gradient(135deg, rgba(10, 14, 26, 0.9) 0%, rgba(2, 3, 8, 0.95) 100%);
  padding: 50px 20px 30px; text-align: center; border-top: 1px solid rgba(79, 195, 247, 0.2);
  color: #b0bec5; z-index: 1; position: relative;
}
footer a { color: #4fc3f7; text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
footer a:hover { color: #81d4fa; text-decoration: underline; }
.footer-buttons { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 25px;
  border-radius: 30px; text-decoration: none !important; font-weight: 700; transition: all 0.3s ease;
}
.footer-btn:hover { transform: translateY(-3px) scale(1.05); }
.footer-btn:active { transform: translateY(-1px) scale(1.02); }
.youtube-btn-footer {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%); color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}
.youtube-btn-footer:hover { box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5); }
.coffee-btn {
  background: linear-gradient(135deg, #FFDD00 0%, #FFA500 100%); color: #000;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

/* Responsive */

@media (max-width: 1024px) {
  .scroll-arrow { display: none; }
  /* Show play icon on all touch/small screen devices */

  /* Must be inside the main @media (max-width: 1024px) block */

.scroll-arrow { 
    display: none; /* Hide the arrows on all mobile/tablet screens */
}

/* Ensure the play button is always visible on touch devices */
.play-icon { 
    transform: scale(1) !important; 
    opacity: 1 !important; 
    width: 44px; 
    height: 44px; 
}

.play-icon {
  position: absolute; 
  top: 15px;    /* 15px down from the top edge */
  right: 15px;  /* FIX: 15px from the right edge */
  left: auto;   /* Ensures it stays on the right */
  z-index: 40; 
  width: 50px; height: 50px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4); 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  opacity: 0; 
  
}

  .play-icon svg { width: 26px; height: 26px; fill: white; margin-left: 3px; }
  
  /* Reset Card Hover/Expanded states to mobile defaults */
  .video-card:hover, .video-card.expanded { transform: none; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
  
  /* Mobile/Tablet Card Dimensions - Taller to show descriptions */
  .video-card, .shorts-card { 
    width: 220px !important; 
    height: auto !important; 
    min-height: 320px !important; /* Increased to accommodate description */
  }
  
  /* Ensure expanded cards show content properly */
  .video-card.expanded { height: auto !important; min-height: 350px; }
  .video-card.expanded .thumbnail-wrapper { height: 180px !important; flex-shrink: 0; border-radius: 12px 12px 0 0; }
  
  /* Show Description on Mobile - Always Visible */
  .description-wrapper { 
    display: flex !important; /* Always show on mobile */
    opacity: 1 !important;
    visibility: visible !important;
  }
  .video-description { 
    opacity: 1 !important; /* Always show on mobile */
    transform: translateY(0) !important;
    max-height: 120px; /* Limit height to prevent overflow */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Show up to 4 lines */
    -webkit-box-orient: vertical;
  }
  .video-card.expanded .description-wrapper { display: flex; }
  .video-card.expanded .video-description { 
    opacity: 1; 
    transform: translateY(0);
    max-height: none; /* Remove limit when expanded */
    -webkit-line-clamp: unset; /* Show full text when expanded */
  }
  
  /* Layout Adjustments */
  .scroll-container { padding: 0; }
  .scroll-wrapper { padding: 10px 15px; }
  section { padding: 10px 0; }
  section h2 { margin-left: 15px; font-size: clamp(1.2rem, 3vw, 1.5rem); }
  .footer-btn { padding: 10px 20px; font-size: 0.9rem; }

  .theater-content { 
    width: 100vw; 
    height: auto; /* Changed from 70vh */
    max-height: 50vh; /* Limit height on mobile */
    border-radius: 0; 
  }
  
  .theater-content.portrait {
    max-height: 80vh; /* Taller for shorts */
    max-width: 90vw;
  }
/* Mobile - solid background and proper sizing */
  .theater-mode {
    background: #000 !important;
    backdrop-filter: none;
  }
  
  .theater-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
  }
  
  .theater-content.portrait {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
  }
  
  .theater-content iframe {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
  }
}

  .theater-close { top: 15px; right: 15px; }
  .tools-grid {
      grid-template-columns: 1fr 1fr;
      gap: 15px;
      margin-top: 25px;
  }
  .tool-item {
      padding: 20px 15px;
      min-height: 100px;
  }
  .tool-name {
      font-size: 1rem;
  }
  .tool-type {
      font-size: 0.85rem;
  }
  .about-section {
      padding: 30px 15px;
  }

  /* FIX: Landscape mode to show description without overflow (Nested) */
  @media (orientation: landscape) and (max-width: 1024px) {
    .video-card, .shorts-card { height: 350px !important; } /* Taller card in landscape */
    .video-card.expanded { 
        height: 350px !important; 
        min-height: 350px;
    }
    .video-card.expanded .thumbnail-wrapper { 
        height: 50% !important; /* Shrink thumbnail area */
    }
    .video-card.expanded .description-wrapper { 
        height: 50%; /* Allocate remaining space for description */
        align-items: center; 
    }
    
  }
 

  /* FIX: Landscape mode to show description without overflow */
  @media (orientation: landscape) and (max-width: 1024px) {

   .video-card, .shorts-card {
  width: 200px !important;
  min-height: 300px !important; /* allow taller cards */
  height: auto !important;
}


    .video-card.expanded { 
        height: 350px !important; 
        min-height: 350px;
    }
    .video-card.expanded .thumbnail-wrapper { 
        height: 50% !important; /* Shrink thumbnail */
    }
    .video-card.expanded .description-wrapper { 
        height: 50%; /* Give description remaining space */
        align-items: center; 
    }
    
  }

/* FIX: Remove the text indent ONLY on small mobile screens where arrows are hidden */
@media (max-width: 768px) {
    .thumbnail-title {
        /* Revert to symmetrical padding for perfect centering on small screens */
        padding-left: 15px !important; 
    }
}


/* FIX: Unify ALL card sizes to the compact 200x300 look on DESKTOP */

@media (min-width: 1025px) {
    /* Allow Netflix-style auto height */
    .video-card {
        width: 200px !important;
        min-height: 300px !important;
        height: auto !important;
        transition: all 0.6s ease-in-out;
    }
}


/* Animations */
@keyframes shimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
@keyframes pulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; transform: scale(1.02); } }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1.2); opacity: 1; } }
@keyframes headerGlow { from { opacity: 0.7; transform: scale(1); } to { opacity: 1; transform: scale(1.1); } }

/* Contact section */
.contact-section {
  background: transparent;
  padding: 50px 20px;
  margin: 20px 0;
}

.contact-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.contact-container h2 {
  text-align: center;
  margin: 0 0 30px;
}

.contact-form {
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(20px);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(79, 195, 247, 0.2);
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #b0bec5;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4fc3f7;
  background: rgba(0, 0, 0, 0.6);
}

.submit-btn {
  width: 100%;
  padding: 15px 30px;
  background: linear-gradient(135deg, #0288d1 0%, #01579b 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
  transform: translateY(-2px);
}

.success-message {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
  font-weight: 600;
}

/* ================================================================ */
/* ============== IMPROVED STYLES FOR TOOL PAGE V2 ================ */
/* ================================================================ */

/* --- Header & "Back" Link --- */
.tool-header {
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
}
/* This specifically targets the "Back to the Main Lab" link */
.tool-header a {
  color: var(--text-secondary); /* Softer blue from your theme */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block; /* Allows for padding and margin */
  margin-top: 15px;
  padding: 8px 15px;
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.tool-header a:hover {
  background: rgba(79, 195, 247, 0.15);
  border-color: rgba(79, 195, 247, 0.6);
  color: #fff;
}


/* --- Main Container --- */
.prompt-container {
  width: 90%;
  max-width: 800px;
  margin: 20px auto; /* Reduced top margin slightly */
  padding: 40px;
}


/* --- The Generated Prompt Area --- */
.result-area {
  margin-top: 30px;
  background: rgba(0,0,0,0.3);
  padding: 30px; /* Increased padding */
  border-radius: 12px; /* Nicer rounded corners */
  text-align: left;
  border: 1px solid rgba(79, 195, 247, 0.1);
}

/* This is for the prompt text itself */
#generatedPrompt {
  font-size: 1.25rem;  /* Bigger text */
  line-height: 1.8;
  color: var(--text-primary); /* Softer, off-white color (#e8eaf6) */
  font-weight: 400; /* Normal weight, not thin */
}


/* --- Buttons --- */
#copyBtn {
  margin-top: 25px;
  padding: 12px 25px; /* Larger button */
  background: var(--accent-vivid);
  color: #000;
  border: none;
  border-radius: 8px; /* Rounded corners */
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
#copyBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--vivid-glow);
}

/* Add this to your style.css file */
.loader-hidden #loading {
  display: none !important;
}

/* =================================================================== */
/* ============== FINAL & COMPLETE PROMO BANNER STYLES V2 ============== */
/* =================================================================== */

.promo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 25px 20px;
  margin: 0;
  max-width: none;
  border-radius: 0;
  background: linear-gradient(145deg, rgba(2, 136, 209, 0.1) 0%, rgba(79, 195, 247, 0.05) 100%);
  border-bottom: 1px solid rgba(79, 195, 247, 0.2);
  border-top: 1px solid rgba(79, 195, 247, 0.2);
}

.promo-content {
  text-align: left;
  flex-grow: 1;
  max-width: 600px;
}

.promo-section h2 {
  font-size: 1.3rem;
  margin: 0 0 5px 0;
  text-align: left;
  background: none; /* Removes the old gradient */
  color: var(--text-secondary); /* Sets the text color to blue */
  /* THIS IS THE CRITICAL FIX: It makes the text solid again */
  -webkit-text-fill-color: initial; 
}

.promo-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: none;
  margin: 0;
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: left;
}

.promo-btn {
  margin-top: 0;
  padding: 12px 30px;
  font-size: 1rem;
  flex-shrink: 0;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-vivid) 0%, #ff8f00 100%);
  color: #020308;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px var(--vivid-glow);
}

.promo-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 25px var(--vivid-glow);
  color: #000;
}

/* MOBILE STYLES FOR THE BANNER */
@media (max-width: 768px) {
  .promo-section {
    display: block;
    text-align: center;
    padding: 30px 20px;
  }

  .promo-content,
  .promo-section h2,
  .promo-section p {
    text-align: center;
  }

  .promo-section h2 {
    font-size: 1.4rem;
  }

  .promo-section p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .promo-btn {
    padding: 14px 30px;
    font-size: 0.9rem;
  }
}

/* ================================================================ */
/* ============== FINAL & COMPLETE TOOL PAGE STYLES =============== */
/* ================================================================ */

.tool-header {
  text-align: center;
  margin: 20px 0 40px 0;
  width: 100%;
}
.tool-header a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  border: 1px solid rgba(79, 195, 247, 0.3);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.tool-header a:hover {
  background: rgba(79, 195, 247, 0.15);
  border-color: rgba(79, 195, 247, 0.6);
  color: #fff;
}

.prompt-container {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  padding: 40px;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(79, 195, 247, 0.2);
}
.prompt-container p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
}

#userInput {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 18px;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(79, 195, 247, 0.3);
  color: var(--text-primary);
  border-radius: 12px;
  transition: all 0.3s ease;
}
#userInput:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px var(--secondary-glow);
}
#userInput::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.prompt-form .submit-btn {
  margin-top: 20px;
}

#copyBtn {
  margin-top: 25px;
  padding: 12px 25px;
  /* --- NEW BLUE STYLES --- */
  background: linear-gradient(135deg, var(--accent-blue) 0%, #0288d1 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 15px var(--primary-glow);
  /* --- End of new styles --- */
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

#copyBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.result-area {
  margin-top: 40px;
  background: rgba(0,0,0,0.3);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(79, 195, 247, 0.1);
}
#generatedPrompt {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 400;
}

/* --- AUTH SECTION STYLES --- */

.auth-section {
    max-width: 600px;
    margin: 20px auto 30px;
    padding: 20px;
    background-color: #1a1a2e; /* Dark background matching the theme */
    border: 1px solid #4a4a6e;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2); /* Neon glow effect */
}

.auth-card h2 {
    color: #00ffcc; /* Neon cyan color */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #4a4a6e;
    border-radius: 4px;
    background-color: #0d0d18;
    color: #fff;
    box-sizing: border-box;
    font-size: 1rem;
}

.auth-card input::placeholder {
    color: #888;
}

.auth-card button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.secondary-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: #00ffcc; /* Neon cyan text */
    border: 2px solid #00ffcc;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-weight: bold;
    text-transform: uppercase;
}

.secondary-btn:hover {
    background-color: #00ffcc;
    color: #1a1a2e; /* Dark text on hover */
}

#userStatus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
}

#userStatus strong {
    color: #00ffcc;
    font-weight: 700;
}

/* ================================================================ */
/* ============== ESSENTIAL STYLES FOR LOGIN INTERFACE ============== */
/* ================================================================ */

/* --- AUTH SECTION CONTAINER --- */
.auth-section {
    max-width: 600px;
    margin: 20px auto 30px;
    padding: 20px;
    background-color: #1a1a2e; /* Dark background matching the theme */
    border: 1px solid #4a4a6e;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2); /* Neon glow effect */
}

/* --- FORM TITLE --- */
.auth-card h2 {
    color: #00ffcc; /* Neon cyan color */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- INPUT FIELDS --- */
.auth-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #4a4a6e;
    border-radius: 4px;
    background-color: #0d0d18;
    color: #fff;
    box-sizing: border-box;
    font-size: 1rem;
}

.auth-card input::placeholder {
    color: #888;
}

/* --- BUTTON LAYOUT --- */
.auth-card button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* --- SECONDARY BUTTON (SIGN UP/LOG OUT) --- */
.secondary-btn {
    padding: 10px 20px;
    background-color: transparent;
    color: #00ffcc; /* Neon cyan text */
    border: 2px solid #00ffcc;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-weight: bold;
    text-transform: uppercase;
}

.secondary-btn:hover {
    background-color: #00ffcc;
    color: #1a1a2e; /* Dark text on hover */
}

/* --- USER STATUS BAR (Log-in state) --- */
#userStatus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
}

#userStatus strong {
    color: #00ffcc;
    font-weight: 700;
}

/* --- FINAL, OVERRIDING HEADER & BUTTON FIX (Paste at the very end of style.css) --- */

/* 1. Ensure the overall header content is centered */
header {
    text-align: center !important; /* Force title/content to center */
    padding-top: 50px !important; /* Push content down */
    position: relative !important; /* Required for absolute positioning of the button */
}

/* 2. Style the Title Text (Ensure it is fully centered) */
header h1 {
    text-align: center !important;
    margin-top: 0 !important;
}

/* 3. CRITICAL FIX: Reposition and RESTORE the Button Appearance */
.header-support-btn {
    /* POSITIONING FIX: Break the button out of the flow */
    position: absolute !important;
    top: 25px !important; 
    right: 20px !important;
    
    /* RESTORE BUTTON STYLES (Use !important to force override everything) */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    gap: 5px !important;
    padding: 8px 15px !important;
    
    background-color: #ffaa00 !important; /* Gold/Orange background */
    color: #020308 !important; /* Dark text */
    
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    text-decoration: none !important; /* THIS REMOVES THE UNDERLINE/LINE LOOK */
    
    box-shadow: 0 2px 10px rgba(255, 170, 0, 0.4) !important;
    z-index: 50 !important; /* Ensure it is visible above the banner */
    
    /* Hover state for completeness */
    transition: all 0.2s ease !important;
}

.header-support-btn:hover {
    background-color: #ff8f00 !important;
    transform: translateY(-1px) !important;

}


/* --- FINAL MOBILE SUPPORT BUTTON OVERRIDE --- */
@media (max-width: 600px) {
    .header-support-btn {
        /* 1. Reduce padding significantly to shrink button */
        padding: 6px 10px !important; 
        
        /* 2. Reduce font size */
        font-size: 0.7rem !important;
        
        /* 3. Adjust position to clear the title area */
        top: 30px !important; 
        right: 15px !important; 
    }
}


/* =================================
   === AD CONTAINER WRAPPER ===
   ================================= */
.ad-container-wrapper {
  /* This is the key: sets the max ad width */
  max-width: 728px; 
  
  /* These center the ad container */
  margin-left: auto;
  margin-right: auto;

  /* These add spacing above/below the ad */
  margin-top: 30px;
  margin-bottom: 30px;
  
  /* This centers the ad itself if it's smaller */
  text-align: center;
}

/* On mobile, make the ad fill the width */
@media (max-width: 728px) {
  .ad-container-wrapper {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}