/* =========================================================
   QuickPolls - Global Style (Optimized 2025)
   ========================================================= */

/* === RENK DEĞİŞKENLERİ === */
:root {
  --green-900: #0a2e24;
  --green-800: #0d3b2d;
  --green-700: #104b3a;
  --green-mid: #22a053;
  --green-light: #34d27c;
  --green-accent: #00b894;
  --green-glow: rgba(52, 210, 124, 0.45);
  --text-on-dark: #f8f9fa;
  --muted: #c7d3cc;
}

/* === GENEL YAPI === */
html,
body {
  height: 100%;
}

body {
  background: var(--green-900);
  color: var(--text-on-dark);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans";
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === NAVBAR === */
.glass-navbar {
  background: rgba(12, 35, 28, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 184, 148, 0.3);
  padding: 0.75rem 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.glass-navbar .navbar-brand {
  font-size: 1.3rem;
  color: #e9f5ef !important;
}

.glass-navbar .nav-link {
  color: #cfe6da !important;
  font-weight: 500;
  margin-left: 1rem;
  transition: color 0.3s, transform 0.2s;
}

.glass-navbar .nav-link:hover,
.glass-navbar .nav-link.active {
  color: var(--green-accent) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* === MARKA ROZETİ === */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 0 0.25rem rgba(0, 184, 148, 0.2);
}

/* === BUTTONS === */
.btn-main {
  background: linear-gradient(90deg, var(--green-700), var(--green-mid));
  border: 2px solid var(--green-mid);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.btn-main:hover {
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  border-color: var(--green-light);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 18px var(--green-glow);
}

/* 🎯 İstatistikleri Gör Butonu */
.btn-stats {
  background: transparent;
  border: 1.8px solid var(--green-light);
  color: #72ffba;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-stats:hover {
  background: rgba(52, 210, 124, 0.12);
  color: #baffdb;
  box-shadow: 0 0 15px rgba(52, 210, 124, 0.4);
  transform: translateY(-2px);
}


/* Anasayfa Anketleri Keşfet Mavi Butonu */

.btn-explore {
  background: linear-gradient(90deg, #0f4c75, #3282b8);
  border: 2px solid #3282b8;
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

.btn-explore:hover {
  background: linear-gradient(90deg, #3282b8, #49a8df);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 18px rgba(73, 168, 223, 0.45);
  border-color: #49a8df;
}

/* ✅ Katıl Butonu */
.btn-join {
  background: linear-gradient(90deg, #1e7b4c, #249b5a);
  border: 1.5px solid #2d9e63;
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.25s ease-in-out;
}

.btn-join:hover {
  background: linear-gradient(90deg, #249b5a, #34d27c);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 18px rgba(52, 210, 124, 0.4);
  border-color: #34d27c;
}

/* İnce çizgili buton */
.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  color: #e8f7f0;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-outline-light:hover {
  border-color: var(--green-light);
  color: var(--green-light);
  box-shadow: 0 0 15px rgba(52, 210, 124, 0.35);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* === HERO === */
.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(10, 46, 36, 0.78), rgba(10, 46, 36, 0.78)),
    url('https://images.unsplash.com/photo-1483478550801-ceba5fe50e8e?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat fixed;
}

.hero .lead {
  color: var(--muted);
  max-width: 52rem;
  margin: 0 auto;
}

/* === KARTLAR === */
.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}

.card-dark:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 15px rgba(52, 210, 124, 0.2);
}

/* === POLL IMAGE === */
.poll-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 2px solid rgba(52, 210, 124, 0.3);
}

.poll-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease-in-out;
  filter: brightness(0.85);
}

.poll-card:hover .poll-image {
  transform: scale(1.05);
  filter: brightness(1);
}

/* === FORM ELEMANLARI === */
.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.form-select-dark {
  background-color: rgba(25, 45, 38, 0.9) !important;
  color: #f1f8f4 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f1f8f4' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.form-select-dark:focus {
  background-color: rgba(35, 65, 55, 1) !important;
  border-color: #00b894 !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 184, 148, 0.25);
}

.form-control::placeholder {
  color: #a8b6af;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.08);
  color: #e9f1ee;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* === BÖLÜM ARKAPLANLARI === */
.section-muted {
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
}

.section-light {
  background: linear-gradient(180deg, #09452e, #0c2f21);
}

/* === PROGRESS BAR === */
.stylish-progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  height: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.stylish-progress .progress-bar {
  background: linear-gradient(90deg, #00c46b, #00e676, #6fffb0);
  background-size: 200% 100%;
  animation: progressGlow 3s ease infinite;
  border-radius: 50px;
  transition: width 0.4s ease;
}

@keyframes progressGlow {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 8px rgba(0, 255, 128, 0.4);
  }

  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 16px rgba(0, 255, 128, 0.6);
  }

  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 8px rgba(0, 255, 128, 0.4);
  }
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  margin: 3rem 0;
}

/* === STATISTICS === */
.stat {
  display: grid;
  gap: 0.25rem;
}

.stat .value {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.stat .label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* === FOOTER === */
.footer-modern {
  background: linear-gradient(180deg, #0b3d2e, #06291e);
  border-top: 2px solid #00b894;
  color: #d9e6df;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.footer-modern .text-muted {
  color: #c8d9d0 !important;
}

.footer-modern .social-links {
  display: flex;
  gap: 1rem;
}

.footer-modern .social-link {
  color: #a9bfb4;
  font-size: 1.25rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-modern .social-link:hover {
  color: #00b894;
  transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar-nav .nav-link {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    padding-top: 5rem;
  }
}

main,
.main-content {
  flex: 1 0 auto;
}