@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

:root {
  /* Common Colors */
  --primary-red: #FF0000;
  --dark-red: #CC0000;
  
  /* Light Theme (Default) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --surface: #FFFFFF;
  --surface-hover: #F1F3F5;
  --text-primary: #020617;
  --text-secondary: #64748B;
  --border-color: #E2E8F0;
  --nav-bg: rgba(255, 255, 255, 0.9);
}

.dark-theme {
  /* Dark Theme */
  --bg-primary: #020617;
  --bg-secondary: #0F172A;
  --surface: #1E293B;
  --surface-hover: #334155;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --border-color: #1E293B;
  --nav-bg: rgba(2, 6, 23, 0.9);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--text-primary);
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
}

/* ================================= */
/* NAVIGATION                        */
/* ================================= */
header {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.nav-logo {
  height: 65px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.footer-logo {
  height: 100px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--primary-red);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-red);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
  z-index: 10;
}

.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeIn 0.3s ease;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
}

.dropdown-menu a:hover {
  background: var(--surface);
  color: var(--primary-red);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ================================= */
/* HERO SECTION                      */
/* ================================= */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, rgba(255, 0, 0, 0.15) 0%, var(--bg-primary) 50%);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.particles-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ================================= */
/* BUTTONS                           */
/* ================================= */
.btn-primary {
  display: inline-block;
  background: var(--primary-red);
  color: white !important;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--primary-red);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.6);
}

.btn-secondary {
  display: inline-block;
  background: var(--surface);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary-red);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
}

/* ================================= */
/* LAYOUT & CONTAINERS               */
/* ================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* ================================= */
/* TOOLS GRID                        */
/* ================================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tool-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-red);
  box-shadow: 0 15px 35px rgba(255, 0, 0, 0.15);
}

.tool-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
}

.tool-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tool-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ================================= */
/* FEATURES SECTION                  */
/* ================================= */
.features {
  background: var(--bg-secondary);
  padding: 4rem 2rem;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  padding: 1.5rem;
}

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-red);
}

/* ================================= */
/* SEO & CONTENT                     */
/* ================================= */
.content-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.content-section h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-red);
}

.content-section h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-section p, .content-section ul {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.content-section ul {
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* ================================= */
/* AD PLACEHOLDERS                   */
/* ================================= */
.ad-container {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 2rem auto;
  overflow: hidden;
}

.ad-banner {
  width: 100%;
  max-width: 728px;
  height: 90px;
}

.ad-square {
  width: 100%;
  max-width: 300px;
  height: 250px;
}

/* ================================= */
/* TOOL INTERFACE                    */
/* ================================= */
.tool-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-interface {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
}

.results-area {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: none;
}

.results-area.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

/* ================================= */
/* FOOTER                            */
/* ================================= */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary-red);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ================================= */
/* THEME TOGGLE                      */
/* ================================= */
.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.theme-toggle-btn:hover {
  background: var(--surface-hover);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

.theme-toggle-btn .fa-sun { display: block; }
.theme-toggle-btn .fa-moon { display: none; }

body.dark-theme .theme-toggle-btn .fa-sun { display: none; }
body.dark-theme .theme-toggle-btn .fa-moon { display: block; }

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

/* ================================= */
/* YTLARGE UI CLONE                  */
/* ================================= */
.yt-status-box {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  text-align: left;
}
.yt-status-thumb {
  width: 40%;
  min-width: 250px;
  object-fit: cover;
  border-right: 1px solid var(--border-color);
}
.yt-status-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
}
.yt-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(40, 167, 69, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.yt-status-badge:not(.negative) {
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}
.yt-status-badge.negative {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.3);
}
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}
.yt-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.yt-card:hover {
    border-color: var(--primary-red);
    background: var(--surface-hover);
    transform: translateY(-3px);
}
.yt-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--primary-red);
}
.yt-card-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.yt-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}
.yt-earnings-box {
  background: radial-gradient(circle at top right, rgba(255, 0, 0, 0.05), transparent), var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.yt-earnings-value {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin: 1rem 0;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .yt-status-box {
    flex-direction: column;
  }
  .yt-status-thumb {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.btn-success {
    background: #28a745 !important;
    border-color: #218838 !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.copy-btn {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--surface-hover);
    border-color: var(--primary-red);
}

.results-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ================================= */
/* RESPONSIVE                        */
/* ================================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    border: none;
    display: none;
  }

  .nav-links li.dropdown:focus-within .dropdown-menu {
      display: block;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}
