/* ==========================================================================
   1. YEREL FONT TANIMLAMALARI (MANROPE v20)
   ========================================================================== */

/* Regular (400) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/manrope-v20-latin_latin-ext-regular.woff2') format('woff2'); 
}

/* Medium (500) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/manrope-v20-latin_latin-ext-500.woff2') format('woff2');
}

/* SemiBold (600) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/manrope-v20-latin_latin-ext-600.woff2') format('woff2');
}

/* Bold (700) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/manrope-v20-latin_latin-ext-700.woff2') format('woff2');
}

/* ExtraBold (800) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/manrope-v20-latin_latin-ext-800.woff2') format('woff2');
}

/* ==========================================================================
   2. İKON AYARLARI (Material Symbols)
   ========================================================================== */
/* Not: Font dosyası Google CDN'den (base.html) çekildiği için burada @font-face yok. */

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga'; 
}

/* ==========================================================================
   3. GENEL STİLLER (Eski style.css)
   ========================================================================== */

/* Custom Properties */
:root {
  --primary: #359EFF;
  --primary-dark: #2b8ce6;
  --background-light: #f5f7f8;
  --background-dark: #0f1923;
  --text-light: #333333;
  --text-dark: #e5e7eb;
  --border-light: #e5e7eb;
  --border-dark: #374151;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

.prose {
  max-width: 65ch;
}

.prose h2 {
  font-size: 1.5em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose h3 {
  font-size: 1.25em;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

.prose p {
  margin-bottom: 1em;
}

.prose ul, .prose ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.prose li {
  margin-bottom: 0.5em;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(53, 158, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* Cards */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dark .card {
  background: #1f2937;
  border-color: var(--border-dark);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: inherit;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(53, 158, 255, 0.1);
}

.dark .form-input,
.dark .form-select,
.dark .form-textarea {
  background: #374151;
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.dark .form-input:focus,
.dark .form-select:focus,
.dark .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(53, 158, 255, 0.2);
}

/* Results Display */
.result-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.dark .result-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: #475569;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .result-label {
  color: #9ca3af;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.dark .loading::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-balance {
  text-wrap: balance;
}

/* Focus Styles for Accessibility */
.keyboard-navigation .btn:focus,
.keyboard-navigation .form-input:focus,
.keyboard-navigation .form-select:focus,
.keyboard-navigation a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .btn {
    display: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary: #0066cc;
    --border-light: #000000;
    --border-dark: #ffffff;
  }
  
  .card {
    border: 2px solid;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.dark ::-webkit-scrollbar-track {
  background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
  background: #6b7280;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ==========================================================================
   4. HESAP MAKİNESİ STİLLERİ (Eski calculators.css)
   ========================================================================== */

/* Calculator Layout */
.calculator-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .calculator-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Calculator Header */
.calculator-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem;
}

.calculator-icon {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Input Groups */
.input-group {
  margin-bottom: 1.5rem;
}

.input-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.input-row .form-input {
  flex: 1;
}

.input-row .form-select {
  width: auto;
  min-width: 100px;
}

/* Unit Toggles */
.unit-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.unit-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-light);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.unit-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.dark .unit-btn {
  background: #374151;
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.dark .unit-btn.active {
  background: var(--primary);
  color: white;
}

/* Results Section */
.results-section {
  animation: fadeIn 0.5s ease-out;
}

.result-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.result-item {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .result-item {
  background: #374151;
  border-color: var(--border-dark);
}

.result-item-primary {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.dark .result-item-primary {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
}

.result-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.result-unit {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .result-unit {
  color: #9ca3af;
}

/* Progress Bars */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.dark .progress-bar {
  background: #374151;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Risk Indicators */
.risk-low {
  color: #10b981;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.risk-medium {
  color: #f59e0b;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.risk-high {
  color: #ef4444;
  background: #fef2f2;
  border: 1px solid #fca5a5;
}

.dark .risk-low {
  color: #34d399;
  background: #064e3b;
  border-color: #065f46;
}

.dark .risk-medium {
  color: #fbbf24;
  background: #78350f;
  border-color: #92400e;
}

.dark .risk-high {
  color: #f87171;
  background: #7f1d1d;
  border-color: #991b1b;
}

/* Calculator Tabs */
.calculator-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.dark .calculator-tabs {
  border-color: var(--border-dark);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.dark .tab-btn {
  color: var(--text-dark);
}

.dark .tab-btn.active {
  color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Formula Display */
.formula-display {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

.dark .formula-display {
  background: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

/* Range Sliders */
.range-slider {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dark .range-slider {
  background: #4b5563;
}

.dark .range-slider::-webkit-slider-thumb {
  border-color: #1f2937;
}

.dark .range-slider::-moz-range-thumb {
  border-color: #1f2937;
}

/* Calculator Specific Styles */
.bmi-scale {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
}

.bmi-segment {
  flex: 1;
  position: relative;
  transition: all 0.3s ease;
}

.bmi-segment:hover {
  transform: scale(1.05);
}

.bmi-segment.underweight { background: #ef4444; }
.bmi-segment.normal { background: #10b981; }
.bmi-segment.overweight { background: #f59e0b; }
.bmi-segment.obese { background: #dc2626; }

.bmi-marker {
  position: absolute;
  top: -8px;
  width: 2px;
  height: 40px;
  background: #000;
  transform: translateX(-50%);
}

/* Heart Rate Zones */
.heart-rate-zone {
  border-left: 4px solid;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.zone-1 { border-color: #10b981; }
.zone-2 { border-color: #3b82f6; }
.zone-3 { border-color: #f59e0b; }
.zone-4 { border-color: #f97316; }
.zone-5 { border-color: #ef4444; }

/* Pregnancy Timeline */
.pregnancy-timeline {
  position: relative;
  padding-left: 2rem;
}

.pregnancy-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.timeline-milestone {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-milestone::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 640px) {
  .calculator-header {
    padding: 1.5rem;
  }
  
  .input-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .input-row .form-select {
    width: 100%;
  }
  
  .result-grid {
    grid-template-columns: 1fr;
  }
  
  .calculator-tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
}

/* Print Styles for Calculators */
@media print {
  .calculator-header {
    background: #000 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
  }
  
  .result-item {
    border: 1px solid #000 !important;
    break-inside: avoid;
  }
  
  .no-print {
    display: none !important;
  }
}

/* Mobile-specific calculator styles */
@media (max-width: 768px) {
    .calculator-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .calculator-header {
        padding: 1rem;
        margin: 0 -1rem;
    }
    
    .calculator-icon {
        padding: 0.75rem;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .input-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .input-row .form-select {
        width: 100%;
        min-width: auto;
    }
    
    /* Mobile form elements */
    .form-input, .form-select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        padding: 0.75rem;
        height: auto;
    }
    
    /* Mobile results */
    .results-section {
        margin-top: 1rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .result-item {
        padding: 0.75rem;
    }
    
    .result-number {
        font-size: 1.25rem;
    }
    
    /* Mobile progress bars */
    .progress-bar {
        height: 6px;
        margin: 0.5rem 0;
    }
    
    /* Mobile tabs */
    .calculator-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* BMI scale mobile adjustments */
    .bmi-scale {
        height: 20px;
        margin: 0.5rem 0;
    }
    
    .bmi-marker {
        height: 30px;
    }
    
    /* Mobile-specific spacing */
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ensure content fits screen */
    .min-h-screen {
        min-height: 100vh;
        overflow-x: hidden;
    }
}

/* Very small mobile devices */
@media (max-width: 360px) {
    .calculator-header {
        padding: 0.75rem;
    }
    
    .calculator-icon {
        padding: 0.5rem;
    }
    
    .tab-btn {
        min-width: 100px;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .form-input, .form-select {
        padding: 0.5rem;
    }
}

/* Mobile landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .calculator-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .input-row {
        flex-direction: row;
    }
    
    .input-row .form-select {
        width: auto;
        min-width: 100px;
    }
}

/* Fix for mobile viewport height issues */
@supports (-webkit-touch-callout: none) {
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Touch-friendly button sizes for mobile */
@media (max-width: 768px) {
    button, .btn {
        min-height: 44px; /* Minimum touch target size */
        padding: 0.75rem 1rem;
    }
    
    .unit-btn {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile-specific animations */
@media (max-width: 768px) {
    .results-section {
        animation: slideUp 0.4s ease-out;
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Toast Notification Fixes */
#successToast {
    display: flex !important;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

/* Hidden state for toast */
#successToast.hidden {
    display: none !important;
}

/* Mobile toast positioning */
@media (max-width: 768px) {
    #successToast {
        left: 1rem !important;
        right: 1rem !important;
        bottom: 1rem !important;
        top: auto !important;
        transform: translateY(100px);
        margin: 0;
        width: auto;
    }
    
    #successToast:not(.hidden) {
        transform: translateY(0);
    }
}

/* Desktop toast positioning */
@media (min-width: 769px) {
    #successToast {
        top: 1rem !important;
        right: 1rem !important;
        bottom: auto !important;
        left: auto !important;
        transform: translateX(100px);
        margin: 0;
        width: auto;
        max-width: 300px;
    }
    
    #successToast:not(.hidden) {
        transform: translateX(0);
    }
}

/* Ensure toast is properly styled */
#successToast.bg-green-500,
#successToast.bg-red-500 {
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* Toast content alignment */
#successToast .flex {
    align-items: center;
    gap: 0.5rem;
}

/* Material icon size in toast */
#successToast .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Prevent horizontal scroll caused by toast */
body {
    overflow-x: hidden;
}

/* Mobile-specific body fixes */
@media (max-width: 768px) {
    body {
        position: relative;
        width: 100%;
    }
    
    /* Ensure content doesn't get pushed by toast */
    .min-h-screen {
        padding-bottom: 0;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    #successToast {
        left: 0.5rem !important;
        right: 0.5rem !important;
        bottom: 0.5rem !important;
        padding: 0.5rem 0.75rem;
    }
    
    #toastMessage {
        font-size: 0.875rem;
    }
}

/* Alarm modal animations */
@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fixed.bg-opacity-50 > div {
    animation: modalEnter 0.3s ease-out;
}

/* Notification styles */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

/* Timeline Styles */
.sleep-timeline {
    position: relative;
    margin: 20px 0;
}

.timeline-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    position: relative;
    margin: 30px 0 40px 0;
}

.timeline-cycle {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-cycle:hover {
    transform: scaleY(1.3);
}

.timeline-marker {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-marker-time {
    color: #374151;
    margin-bottom: 4px;
}

.timeline-marker-label {
    color: #6b7280;
    font-size: 10px;
}

.timeline-now {
    position: absolute;
    top: -10px;
    transform: translateX(-50%);
    color: #ef4444;
    font-weight: bold;
    font-size: 11px;
}

/* Power Nap Styles */
.power-nap-option {
    border-left: 4px solid #8b5cf6 !important;
}

/* Circadian Visualization */
.circadian-visual {
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa, #93c5fd, #dbeafe);
    border-radius: 8px;
    position: relative;
    margin: 15px 0;
    overflow: hidden;
}

.circadian-phase {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 11px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ==========================================================================
   5. SAYFA STİLLERİ (Eski pages.css)
   ========================================================================== */

/* Page-specific Styles */

/* About Page */
.about-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
}

.team-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.team-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.dark .team-card {
  background: #374151;
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

/* Blog Page */
.blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.dark .blog-card {
  background: #374151;
}

.blog-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.dark .blog-meta {
  color: #9ca3af;
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact Page */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  background: var(--primary);
  color: white;
  padding: 0.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Privacy & Terms Pages */
.policy-section {
  margin-bottom: 3rem;
}

.policy-section h2 {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.policy-list {
  list-style-type: none;
  padding-left: 0;
}

.policy-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.dark .faq-item {
  border-color: var(--border-dark);
}

.faq-question {
  font-weight: 600;
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: between;
  align-items: center;
}

.faq-answer {
  color: #6b7280;
  line-height: 1.6;
}

.dark .faq-answer {
  color: #9ca3af;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.dark .testimonial-card {
  background: #374151;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Statistics */
.stats-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .stat-card {
  background: #374151;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .stat-label {
  color: #9ca3af;
}

/* Page Transitions */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-exit {
  opacity: 1;
}

.page-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Error Pages */
.error-container {
  text-align: center;
  padding: 4rem 2rem;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #6b7280;
}

.dark .error-message {
  color: #9ca3af;
}

/* Loading States for Pages */
.page-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.dark .loading-spinner {
  border-color: #374151;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
  .about-hero {
    padding: 3rem 0;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-section {
    padding: 2rem 1rem;
  }
  
  .error-code {
    font-size: 4rem;
  }
}

/* Print Styles for Pages */
@media print {
  .newsletter-section,
  .contact-form,
  .blog-meta {
    display: none !important;
  }
  
  .team-card,
  .blog-card,
  .testimonial-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}