/**
 * Ana CSS Dosyası - Mavi-Mor Geçişli Tasarım
 * Agri Haber Ajansı - agrihaberajansi.com
 */

:root {
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    --primary-color: #1e40af;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
}

/* ============= HEADER ============= */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Arama çubuğu input odaklanma efekti */
.header .input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.top-bar {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 0;
    font-size: 13px;
}

.top-link {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    opacity: 0.9;
}

.top-link:hover {
    opacity: 1;
}

.main-navbar {
    padding: 15px 0;
}

.navbar-brand .site-name {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 24px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

/* ============= BUTTONS ============= */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ============= CARDS ============= */
.card {
    border: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
}

/* ============= SLIDER ============= */
.slider-image-container {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.slider-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

/* ============= FOOTER ============= */
.footer {
    background: #111827;
    color: white;
    padding: 60px 0 20px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gradient);
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    .slider-image-container { height: 250px; }
    .navbar-brand .site-name { font-size: 20px; }
}
/* css/style.css - iOS Glassmorphism Theme + Performance Optimized */

:root {
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --primary-color: #007AFF;
  --primary-gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  --text-primary: #1c1c1e;
  --text-secondary: #636366;
  --background: #f2f2f7;
  --card-radius: 18px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0,122,255,0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(88,86,214,0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0,122,255,0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  overflow-x: hidden;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  will-change: transform;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

/* Header - Glass Navbar */
.glass-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.021em;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
  background: rgba(0,122,255,0.08);
}

/* News Cards */
.news-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hero Section - Manset */
.hero-slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 500px;
  margin-bottom: 2rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 800px;
}

/* Sidebar */
.sidebar-widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0,122,255,0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Search Box */
.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-input:focus {
  outline: none;
  background: white;
  box-shadow: 0 4px 20px rgba(0,122,255,0.15);
}

/* Buttons */
.btn-glass {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,122,255,0.3);
  cursor: pointer;
}

.btn-glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,122,255,0.4);
  color: white;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  justify-content: center;
  margin-top: 3rem;
}

.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: white;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}

.page-link:hover, .page-item.active .page-link {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}

/* Son Dakika Ticker */
.ticker-wrapper {
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(0,0,0,0.2);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(5px);
}

.ticker-content {
  display: flex;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  padding-left: 120px;
}

.ticker-item {
  padding: 0 2rem;
  font-weight: 500;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Author Card */
.author-card {
  text-align: center;
  padding: 2rem;
}

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  :root {
    --card-radius: 14px;
  }
  
  .hero-slider {
    height: 350px;
    border-radius: 0;
    margin: 0 -0.75rem 1.5rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .news-title {
    font-size: 1rem;
  }
  
  .glass-card {
    margin-bottom: 1rem;
  }
  
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 16px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  }
  
  .ticker-label {
    font-size: 0.75rem;
    padding: 0 0.75rem;
  }
}

/* Desktop: Logo solda, normal büyüklükte */
.desktop-logo {
    display: flex !important;
    align-items: center;
    padding: 0;
    margin-right: 20px;
}

.desktop-logo img {
    height: 50px; /* Desktop boyutu */
    width: auto;
    max-width: none;
}

/* Mobil logo gizli */
.mobile-logo {
    display: none !important;
}

/* Mobil: Logo ortada, büyük */
@media (max-width: 991px) {
    /* Desktop logosu gizle */
    .desktop-logo {
        display: none !important;
    }
    
    /* Mobil logosu göster - tam ortada */
    .mobile-logo {
        display: block !important;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 100;
        padding: 0;
    }
    
    .mobile-logo img {
        height: 70px; /* Mobilde daha büyük */
        width: auto;
        display: block;
    }
    
    /* Toggler butonu solda kalsın */
    .navbar-toggler {
        position: relative;
        z-index: 101;
        margin-right: auto; /* Sola iter */
    }
    
    /* Navbar yüksekliği */
    .navbar {
        min-height: 80px;
        display: flex;
        align-items: center;
    }
}

/* Çok küçük ekran */
@media (max-width: 375px) {
    .mobile-logo img {
        height: 55px;
    }
}