/* Ya-Der Sosyal - Public Web UI */

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

:root {
  --primary: #1e3a5f;
  --primary-light: #2a4a73;
  --primary-dark: #0d1b2a;
  --secondary: #ffc107;
  --accent: #00bcd4;

  --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
  --gradient-secondary: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  --gradient-accent: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);

  --text-primary: #212529;
  --text-secondary: #64748b;
  --text-light: #ffffff;

  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0d1b2a;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.16);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  /* Legacy aliases used by existing page templates */
  --spacing-xs: var(--space-1);
  --spacing-sm: var(--space-2);
  --spacing-md: var(--space-3);
  --spacing-lg: var(--space-4);
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

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

.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

.section {
  padding: var(--space-6) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-title h2 {
  margin-bottom: var(--space-2);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title p {
  max-width: 680px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-container {
  width: min(1280px, 100% - 2rem);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.navbar-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: 0.2s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  background: var(--gradient-primary);
  color: #fff;
}

.navbar-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
  z-index: 1202;
}

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: 90px;
  display: flex;
  align-items: center;
  background: var(--gradient-primary);
  color: #fff;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1), transparent 55%),
              radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.45rem);
  max-width: 760px;
  margin: 0 auto var(--space-4);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-image {
  max-width: min(420px, 100%);
  margin: var(--space-5) auto 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.35));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  color: #1b1b1b;
  background: var(--gradient-secondary);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.28);
}

.btn-outline {
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.btn-dark {
  color: #fff;
  background: var(--gradient-primary);
}

/* Features */
.features {
  background: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.feature-icon {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  background: var(--gradient-primary);
  margin-bottom: 0.9rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.96rem;
}

/* Download */
.download {
  background: var(--gradient-primary);
  color: #fff;
}

.download h2,
.download p {
  color: #fff;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.download-btn {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.9rem 1.1rem;
}

.download-btn i {
  font-size: 2rem;
}

.download-btn-text small {
  display: block;
  opacity: 0.85;
  font-size: 0.8rem;
}

.download-btn-text strong {
  font-size: 1.05rem;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.84);
  padding: var(--space-5) 0 var(--space-3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
  display: block;
}

.footer-section a:hover {
  color: var(--secondary);
}

.social-links {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

/* Public content pages */
.about-page,
.features-page,
.legal-page {
  padding-top: 96px;
  padding-bottom: 2rem;
  min-height: 100vh;
  background: var(--bg-light);
}

.about-content,
.features-content,
.legal-content {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1rem, 2vw, 2rem);
  overflow-wrap: anywhere;
}

.about-content img,
.features-content img,
.legal-content img,
.about-content iframe,
.features-content iframe,
.legal-content iframe {
  max-width: 100%;
  height: auto;
}

.about-content table,
.features-content table,
.legal-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
}

/* Contact page */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-form-wrapper {
  margin-top: 1rem;
}

.contact-form-wrapper h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Responsive */
@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .navbar-toggle {
    display: inline-flex;
  }

  .navbar-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1rem 1rem;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 1201;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu a {
    border-radius: 10px;
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 0.95rem;
  }

  .hero {
    min-height: auto;
    padding: 96px 0 3rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    margin-bottom: var(--space-3);
  }

  .section-title h1,
  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.92rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.92rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1200px, 100% - 1.2rem);
  }

  .navbar-container {
    min-height: 60px;
  }

  .navbar-menu {
    top: 60px;
    max-height: calc(100vh - 60px);
  }

  .hero {
    padding: 76px 0 2rem;
  }

  .hero-title {
    font-size: 1.6rem;
    margin-bottom: var(--space-2);
  }

  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: var(--space-3);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    margin-bottom: var(--space-2);
  }

  .section-title h1 {
    font-size: 1.4rem;
  }

  .section-title h2 {
    font-size: 1.25rem;
  }

  .section-title p {
    font-size: 0.88rem;
  }

  .features-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1rem;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    border-radius: 10px;
    margin-bottom: 0.7rem;
  }

  .feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .download-btn {
    min-width: 0;
    width: 100%;
  }

  .footer {
    padding: var(--space-3) 0 var(--space-2);
  }

  .footer-section h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.82rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .about-page,
  .features-page,
  .legal-page {
    padding-top: 76px;
    padding-bottom: 1.5rem;
  }

  .about-content,
  .features-content,
  .legal-content {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  .about-content h1,
  .features-content h1,
  .legal-content h1 {
    font-size: 1.3rem;
  }

  .about-content h2,
  .features-content h2,
  .legal-content h2 {
    font-size: 1.15rem;
    margin-top: var(--space-2);
  }

  .about-content h3,
  .features-content h3,
  .legal-content h3 {
    font-size: 1rem;
  }

  .about-content p,
  .features-content p,
  .legal-content p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .about-content li,
  .features-content li,
  .legal-content li {
    font-size: 0.88rem;
  }
}
