/* ==========================================================
   KIRŞEHİR BİL KOLEJİ DİJİTAL BÜLTEN SİSTEMİ - MAIN CSS
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0c2340;
  --primary-light: #183b6b;
  --primary-dark: #071527;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(12, 35, 64, 0.08);
  --shadow-lg: 0 20px 35px -5px rgba(12, 35, 64, 0.12);
  --shadow-hover: 0 25px 45px -10px rgba(12, 35, 64, 0.2);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   HEADER & NAVIGATION (TRANSPARENT GLASSMORPHISM)
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 26, 47, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(8, 20, 36, 0.95);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.02);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 35, 64, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 35, 64, 0.3);
  color: #fff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #0c2340;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
  color: #0c2340;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.notify-btn {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.notify-btn:hover {
  background: #f59e0b;
  color: #0c2340;
}

@media (max-width: 600px) {
  .header-container {
    height: 68px;
  }
  .site-logo {
    height: 38px;
    max-width: 160px;
  }
  .nav-actions .btn-outline {
    display: none;
  }
  .notify-btn span {
    display: none;
  }
  .notify-btn {
    padding: 8px 10px;
    border-radius: 50%;
  }
}

/* ==========================================================
   HERO BANNER
   ========================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, #173868 0%, #0c2340 70%, #061426 100%);
  color: #ffffff;
  padding: 70px 0 85px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(245, 158, 11, 0.12) 1.5px, transparent 1.5px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.6;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--accent);
  display: inline-block;
}

.hero-desc {
  font-size: 1.12rem;
  color: #94a3b8;
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-item h4 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.hero-stat-item p {
  font-size: 0.84rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 2px;
}

/* ==========================================================
   3D HERO SHOWCASE CARD
   ========================================================== */
.featured-card-wrapper {
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.showcase-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 29, 72, 0.18);
  border: 1px solid rgba(225, 29, 72, 0.5);
  color: #fda4af;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px #f43f5e; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.featured-card {
  position: relative;
  width: 310px;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  transform: rotateY(-12deg) rotateX(6deg);
  box-shadow: 
    -20px 25px 50px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(245, 158, 11, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.featured-card:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
  box-shadow: 
    0 30px 65px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(245, 158, 11, 0.4);
}

.featured-card-cover {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1.414;
  background: #0f172a;
}

.featured-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-cover img {
  transform: scale(1.03);
}

.featured-card-info {
  padding: 14px 6px 4px;
}

.featured-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-card-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================
   FILTER & SEARCH BAR
   ========================================================== */
.filter-section {
  margin-top: -32px;
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.filter-bar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #f8fafc;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(12, 35, 64, 0.08);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 11px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  border-color: var(--primary);
  background: #ffffff;
}

/* ==========================================================
   BULLETINS ARCHIVE GRID
   ========================================================== */
.bulletins-section {
  padding: 20px 0 80px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.bulletins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

/* Bulletin Card */
.bulletin-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.bulletin-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 158, 11, 0.4);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1.35;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

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

.bulletin-card:hover .card-cover {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 35, 64, 0.85) 0%, rgba(12, 35, 64, 0.2) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.bulletin-card:hover .card-overlay {
  opacity: 1;
}

.read-circle-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #0c2340;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bulletin-card:hover .read-circle-btn {
  transform: scale(1);
}

.card-issue-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(12, 35, 64, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-views-tag {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--accent);
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Empty & Loading States */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border);
}

.empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: #0c2340;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748b;
}

/* Floating Mobile PWA Install Bar */
.mobile-pwa-dock {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  background: rgba(12, 35, 64, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mobile-pwa-dock img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px;
}

.mobile-pwa-text {
  flex: 1;
  padding: 0 12px;
  color: #ffffff;
}

.mobile-pwa-text h5 {
  font-size: 0.88rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.mobile-pwa-text p {
  font-size: 0.74rem;
  color: #cbd5e1;
  margin: 2px 0 0;
}

/* iOS Install Guide Modal */
.ios-guide-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

.ios-guide-modal.open {
  display: flex;
}

.ios-guide-sheet {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 24px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: slideUp 0.3s ease;
}

.ios-step {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 0.9rem;
  color: #0c2340;
  font-weight: 600;
}

.ios-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f59e0b;
  color: #0c2340;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-desc {
    margin: 0 auto 32px;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-grid > div:first-child > div:nth-child(4) {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
