/* ===================================================
   AdapToAdult — Main Stylesheet
   Bootstrap 5.3 üstü custom katman
   =================================================== */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --red-primary:    #C0152A;
  --red-dark:       #8B0000;
  --red-light:      #E8334A;
  --red-pale:       #FDE8EB;
  --cream:          #FFF8F0;
  --cream-dark:     #F5EDE0;
  --gold:           #F5A623;
  --navy:           #1A2340;
  --white:          #FFFFFF;
  --soft-gray:      #F2F2F7;
  --text-dark:      #1A1A2E;
  --text-body:      #3D3D5C;
  --text-light:     #7A7A9D;
  --border-light:   rgba(192,21,42,0.12);
  --shadow-card:    0 8px 32px rgba(192,21,42,0.10);
  --shadow-hover:   0 20px 60px rgba(192,21,42,0.22);
  --transition:     all 0.35s cubic-bezier(0.4,0,0.2,1);
  --radius-card:    20px;
  --radius-btn:     50px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--text-dark);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ---------- Navbar ---------- */
#mainNavbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  transition: var(--transition);
  z-index: 1000;
}

#mainNavbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(192,21,42,0.12);
}

.navbar-brand img {
  height: 52px;
  transition: var(--transition);
}

.navbar-brand img:hover { transform: scale(1.04); }

.navbar-nav .nav-link {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark) !important;
  padding: 8px 16px !important;
  border-radius: 10px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--red-primary) !important;
  background: var(--red-pale);
}

.navbar-toggler { border: none; outline: none; box-shadow: none !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23C0152A' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---------- Hero Section ---------- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 45%, #E8334A 75%, #FF8C69 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(255,200,100,0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Floating blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
  animation: floatBlob 8s ease-in-out infinite;
}
.hero-blob-1 { width: 400px; height: 400px; background: #FF8C69; top: -10%; right: 10%; animation-delay: 0s; }
.hero-blob-2 { width: 250px; height: 250px; background: var(--gold); bottom: 10%; left: 5%; animation-delay: 3s; }
.hero-blob-3 { width: 180px; height: 180px; background: var(--white); top: 60%; right: 25%; animation-delay: 5s; }

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.08); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(90deg, var(--gold), #FFD580);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 480px;
  font-weight: 500;
}

.btn-hero-primary {
  background: var(--white);
  color: var(--red-primary);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 36px;
  border-radius: var(--radius-btn);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  color: var(--red-dark);
}

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  border: 2px solid rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero image area */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle-bg {
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

.hero-main-img {
  width: 88%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* Hero floating cards */
.hero-stat-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  font-family: 'Nunito', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.hero-stat-card .stat-icon { font-size: 1.8rem; }
.hero-stat-card .stat-num { font-size: 1.3rem; font-weight: 900; color: var(--red-primary); }
.hero-stat-card .stat-label { font-size: 0.75rem; color: var(--text-light); font-weight: 600; }

.card-pos-1 { bottom: 40px; left: -20px; animation: floatCard 5s ease-in-out infinite; }
.card-pos-2 { top: 40px; right: -30px; animation: floatCard 5s ease-in-out infinite 2s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Hero wave */
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  pointer-events: none;
  line-height: 0;
}

/* ---------- Section Generic ---------- */
.section-badge {
  display: inline-block;
  background: var(--red-pale);
  color: var(--red-primary);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 50px;
}

/* ---------- About / Features Section ---------- */
#hakkinda { background: var(--white); padding: 100px 0; }

.feature-card {
  background: var(--soft-gray);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid transparent;
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  background: var(--white);
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--red-pale), #FFD6DC);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 2rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  transform: scale(1.1) rotate(-5deg);
}

.feature-card h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin: 0;
}

/* ---------- İçerikler / Cards Section ---------- */
#icerikler {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  padding: 100px 0;
  position: relative;
}

.icerik-header {
  text-align: center;
  margin-bottom: 60px;
}

/* Content cards */
.icerik-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 0;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.icerik-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-light));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.icerik-card:hover::before { transform: scaleX(1); }

.icerik-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(192,21,42,0.2);
}

.card-img-wrap {
  display: flex;
  justify-content: center;
  padding: 36px 24px 20px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--soft-gray) 100%);
}

.card-img-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: 0 8px 30px rgba(192,21,42,0.15);
  transition: var(--transition);
}

.icerik-card:hover .card-img-circle {
  transform: scale(1.06);
  box-shadow: 0 12px 40px rgba(192,21,42,0.25);
}

.card-body-custom {
  padding: 24px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-category {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.card-title-custom {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 22px;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-primary);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  border: none;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-card:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateX(4px);
  gap: 12px;
}

.btn-card i { transition: transform 0.3s ease; }
.btn-card:hover i { transform: translateX(3px); }

/* ---------- Egzersiz Bölümü ---------- */
#egzersiz-bolum {
  background: var(--soft-gray);
  padding: 100px 0;
}

.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.exercise-item {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: var(--transition);
  text-align: center;
}

.exercise-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(192,21,42,0.14);
}

.exercise-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.exercise-num {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--red-primary);
  padding: 8px 6px;
}

/* ---------- Video Cards ---------- */
.video-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  height: 100%;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.video-card-body {
  padding: 20px 24px;
}

.video-card-body h5 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.video-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
  font-weight: 500;
}

/* ---------- Divider Wave ---------- */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg { display: block; }

/* ---------- Footer ---------- */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}

.footer-logo img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-logo p { font-size: 0.9rem; max-width: 280px; line-height: 1.6; }

.footer-links h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 40px 0 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: #FFD580; }

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays for cards */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Inner Pages ---------- */
.inner-hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red-primary) 60%, var(--red-light) 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.inner-hero-pattern {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.inner-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.inner-hero .breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.inner-hero .breadcrumb-custom a {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  transition: var(--transition);
}
.inner-hero .breadcrumb-custom a:hover { color: var(--white); }
.inner-hero .breadcrumb-custom .sep { opacity: 0.5; }
.inner-hero .breadcrumb-custom .current { color: var(--white); font-weight: 700; }

.inner-content-section { padding: 80px 0; background: var(--white); }

.inner-content-section h1,
.inner-content-section h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--red-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.inner-content-section h1 { font-size: 2rem; }
.inner-content-section h2 { font-size: 1.5rem; border-left: 4px solid var(--red-primary); padding-left: 14px; }

.inner-content-section p {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.inner-content-section ol {
  padding-left: 1.4rem;
  margin-bottom: 1.4rem;
}

.inner-content-section ol li {
  margin-bottom: 0.8rem;
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.75;
}

.inner-img-box {
  text-align: center;
  margin: 32px 0;
}

.inner-img-box img {
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  max-width: 100%;
}

.exercise-inner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.exercise-inner-item {
  background: var(--soft-gray);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.exercise-inner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(192,21,42,0.14);
}

.exercise-inner-item img {
  width: 100%;
  object-fit: cover;
  display: block;
  max-height: 260px;
}

.exercise-inner-item .ex-caption {
  padding: 14px 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.exercise-inner-item .ex-num {
  display: inline-block;
  background: var(--red-primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.75rem;
  padding: 2px 10px;
  margin-bottom: 6px;
  font-weight: 800;
}

/* Other Contents Section */
.other-contents { background: var(--cream); padding: 80px 0; }

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-primary);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid var(--red-primary);
  transition: var(--transition);
  background: var(--red-pale);
}
.btn-back:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: var(--white);
  transform: translateX(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  #hero { min-height: auto; padding: 120px 0 80px; }
  .hero-circle-bg { width: 320px; height: 320px; }
  .hero-image-wrap { margin-top: 50px; }
  .hero-stat-card { display: none; }
  .card-pos-1, .card-pos-2 { display: none; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.97rem; }
  .hero-circle-bg { width: 260px; height: 260px; }
  .icerik-card { max-width: 360px; margin: 0 auto; }
  .section-title { font-size: 1.7rem; }
  .exercise-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .exercise-item img { height: 120px; }
  .inner-hero { padding: 90px 0 60px; }
  .exercise-inner-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .exercise-grid { grid-template-columns: repeat(2, 1fr); }
  .exercise-inner-grid { grid-template-columns: 1fr 1fr; }
}
