/* DESIGN_komunite.md Theme Implementation */

:root {
  /* Colors */
  --primary: #B5000B;
  --primary-container: #E30613;
  --on-primary: #FFFFFF;
  
  --secondary: #2C2C2C;
  --secondary-container: #ECECEC;
  --on-secondary-container: #1C1C19;
  
  --tertiary-container: #6C66C1;
  --on-tertiary-container: #FFFFFF;
  
  --surface: #FCF9F4;
  --surface-container-low: #F5F2ED;
  --surface-container-highest: #E8E5E1;
  --surface-container-lowest: #FFFFFF;
  --on-surface: #1C1C19;
  --on-surface-muted: #6B6B66;

  /* Floating Nav Colors */
  --nav-bg: var(--primary-container);
  --nav-text: #FFFFFF;
  --nav-btn-purple: var(--surface);
  --nav-btn-text: var(--primary-container);
  
  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.text-red { color: var(--primary-container); }
.text-muted { color: var(--on-surface-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Responsive Grid Base */
.content-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.col-2 { width: calc(16.666% - 24px); }
.col-3 { width: calc(25% - 24px); }
.col-4 { width: calc(33.333% - 24px); }
.col-5 { width: calc(41.666% - 24px); }
.col-6 { width: calc(50% - 12px); } /* 12px because 1 gap */
.col-8 { width: calc(66.666% - 24px); }
.col-12 { width: 100%; }

.offset-1 { margin-left: calc(8.333%); }
.offset-2 { margin-left: calc(16.666%); }
.offset-4 { margin-left: calc(33.333%); }

.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.flex-between { display: flex; justify-content: space-between; align-items: center;}

/* Buttons (from design md) */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.btn.primary-red {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: var(--on-primary);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.2);
}

.btn.primary-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(227, 6, 19, 0.3);
}

.btn.primary-white {
  background: var(--surface);
  color: var(--primary-container);
}

.btn.primary-white:hover {
  background: #f0f0f0;
}

/* Floating Navigation (Image 2) */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-container {
  background: var(--nav-bg);
  padding: 8px 16px 8px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  max-width: 100%;
}

.nav-logo-img {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-btn {
  padding: 8px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-btn.primary-purple {
  background: var(--nav-btn-purple);
  color: var(--nav-btn-text);
}

/* Hero Section */
.hero {
  padding-top: 180px; /* Space for nav */
  padding-bottom: 120px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--primary-container);
  margin-bottom: 40px;
  margin-left: -3px; 
}

.hero-quote {
  border-left: 2px solid var(--primary-container); 
  padding-left: 20px;
}

.hero-quote p {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--on-surface-muted);
}

.hero-desc p {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Mission Section */
.mission {
  padding: 80px 5%;
  background-color: var(--surface-container-low); 
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #ccc;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
}

.mission-content {
  padding-left: 40px;
}

.label {
  font-size: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-weight: 800;
  display: block;
  margin-bottom: 12px;
}

.mission-content .section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 24px;
  color: var(--on-surface);
}

.body-large {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* The Pulse Section */
.pulse {
  padding: 100px 5%;
}

.pulse-header {
  margin-bottom: 48px;
}

.pulse-header .section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

/* CSS Grid layout for cards to avoid div nesting hell */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.card {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Intentional Asymmetry inside cards per instruction */
.events-card {
  background: var(--surface-container-low);
  display: flex;
}

.events-card .card-content {
  padding: 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.events-card .card-image {
  flex: 1;
}

.events-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: white;
}
.chip.red-bg { background-color: var(--primary-container); }

.events-card h3 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.events-card p {
  color: var(--on-surface-muted);
  margin-bottom: 32px;
}

.link-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.link-btn:hover {
  text-decoration: underline;
}

.workshops-card {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.workshops-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: white;
}

.workshops-card p {
  margin-bottom: 32px;
  opacity: 0.9;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.bullet-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  margin-right: 12px;
}

.projects-card {
  background: var(--secondary);
  color: white;
  padding: 64px 48px;
}

.projects-content {
  max-width: 60%;
}

.projects-card h3 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: white;
}

.projects-card p {
  color: #B0B0B0;
  margin-bottom: 32px;
  font-size: 1.125rem;
}

/* Stats */
.stats {
  padding: 80px 5%;
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--primary-container);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--on-surface-muted);
}

/* CTA & Footer */
.cta-area {
  background-color: var(--primary-container);
  color: white;
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}

/* Massive watermark text effect */
.cta-area::before {
  content: 'KOMÜNİTE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 25vw;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  position: relative;
  z-index: 2;
  margin-bottom: 32px;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content p {
  font-size: 1.125rem;
  max-width: 400px;
  margin: 0;
}

.site-footer {
  padding: 80px 5% 40px;
  background-color: var(--surface-container-low);
}

.footer-nav-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--primary-container);
  margin-bottom: 24px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--on-surface-muted);
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: var(--on-surface);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-links span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.footer-logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin-bottom: 24px;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--on-surface-muted);
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  font-size: 0.7rem;
  color: var(--on-surface-muted);
  text-align: left;
}

/* Membership Form Styles */
.membership-form {
  background: #FFFFFF;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.05);
}

.form-section {
  margin-bottom: 40px;
}

.form-section:last-of-type {
  margin-bottom: 32px;
}

.form-section-title {
  font-size: 1.125rem;
  color: var(--primary-container);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F0F0F0;
  font-family: var(--font-display);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--on-surface);
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 14px;
  border: 1px solid #DFDFDF;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: #FAFAFA;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--on-surface);
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-container);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
  background-color: #FFFFFF;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-group label,
.radio-group label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0;
  text-transform: none;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-container);
  cursor: pointer;
}

@media (max-width: 900px) {
  .col-2, .col-3, .col-4, .col-5, .col-6, .col-8 {
    width: 100%;
    margin-left: 0; 
  }
  
  .floating-nav {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  
  .nav-container {
    gap: 16px;
    padding: 8px 16px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  
  /* Hide scrollbar for elegant UI */
  .nav-container::-webkit-scrollbar {
    display: none;
  }
  .nav-container {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
  }

  .nav-logo-img {
    height: 20px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-links a {
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .nav-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  
  .events-card {
    flex-direction: column;
  }
  
  .projects-content {
    max-width: 100%;
  }

  .grid-container > div {
    grid-column: span 12 !important;
  }

  .cta-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  /* Absolute override to fix any inline massive paddings on mobile */
  section, .content-grid, .membership, .mission, .pulse, .cta-area, .site-footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .hero {
    padding-top: 140px !important;
    padding-bottom: 60px !important;
  }
  
  section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  
  /* Shrink card internals */
  .card, .membership-form, .events-card .card-content, .workshops-card, .projects-card, .card-body {
    padding: 24px !important;
  }
  
  .projects-card h3, .workshops-card h3, .events-card h3 {
    font-size: 1.8rem !important;
  }
}
