/* ==========================================================================
   GÜLMİSAL GÜRSOY - YAZAR WEB SİTESİ & YÖNETİCİ PANELİ
   Tasarım Sistemi: Siyah Zemin Üzerine Altın Rengi Tipografi ve Detaylar
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Renk Paleti - Black & Gold Theme */
  --bg-dark: #08080a;
  --bg-card: #121216;
  --bg-card-hover: #191920;
  --bg-surface: #17171d;
  --bg-glass: rgba(18, 18, 22, 0.85);

  /* Altın Rengi Gradyanları ve Tonları */
  --gold-primary: #d4af37;
  --gold-light: #f5e6a3;
  --gold-dim: #9e8024;
  --gold-dark: #6e5818;
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --gold-subtle-glow: 0 0 25deg rgba(212, 175, 55, 0.18);

  /* Tipografi Renkleri */
  --text-main: #f0f0f5;
  --text-muted: #a0a0b2;
  --text-gold: #e6c667;
  --border-color: rgba(212, 175, 55, 0.2);
  --border-gold-glow: rgba(212, 175, 55, 0.45);

  /* Font Aileleri */
  --font-heading: 'Cinzel', 'Cormorant Garamond', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Geçişler ve Yuvarlatma */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.03) 0%, transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Altın Metin Efekti */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-border-bottom {
  border-bottom: 2px solid var(--gold-primary);
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Navigasyon */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
  padding: 18px 0;
}

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

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo span.gold-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--gold-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition-fast);
}

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

/* Açılır Menü (Dropdown) */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), var(--gold-subtle-glow);
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  padding-left: 25px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  font-size: 1.4rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 110px;
  padding-bottom: 60px;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  color: var(--gold-dim);
  margin-bottom: 15px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #08080a;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  color: #000;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

/* Section Stilleri */
.section {
  padding: 90px 0;
  position: relative;
}

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

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 18px auto 0 auto;
}

/* Hakkımda (Kimdir) Bölümü */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
  align-items: center;
}

.about-card-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: var(--gold-subtle-glow);
  text-align: center;
}

.about-card-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: calc(var(--radius-lg) + 10px);
  pointer-events: none;
}

.about-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--bg-card));
  margin: 0 auto 25px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--bg-dark);
  font-weight: 700;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
}

.about-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.about-role {
  color: var(--gold-dim);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.about-bio {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.8;
}

/* Son Çalışmam / Duyuru Kartı ("Serin Hazinen Işın") */
.announcement-banner {
  background: linear-gradient(135deg, rgba(20, 20, 26, 0.95), rgba(12, 12, 16, 0.98));
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: 45px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), var(--gold-subtle-glow);
}

.announcement-banner::before {
  content: 'DUYURU';
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--gold-gradient);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.announcement-content {
  max-width: 850px;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.announcement-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.announcement-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Eserler & Kategoriler Bölümü */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold-glow);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), var(--gold-subtle-glow);
}

.work-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dim);
  margin-bottom: 12px;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.work-excerpt {
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.work-read-btn {
  color: var(--gold-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.9rem;
}

.work-read-btn:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* Modal Window (Eser Okuma Penceresi) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-glow);
  border-radius: var(--radius-lg);
  max-width: 750px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.9), 0 0 35px rgba(212, 175, 55, 0.2);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--gold-primary);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.modal-meta {
  color: var(--gold-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
}

.modal-body {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.9;
  white-space: pre-line;
}

/* Special Protected Notice Card inside Modal */
.notice-card {
  background: linear-gradient(145deg, rgba(25, 25, 35, 0.9), rgba(16, 16, 22, 0.95));
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-md);
  padding: 35px 30px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.05);
  margin: 10px 0;
}

.notice-icon {
  width: 64px;
  height: 64px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.notice-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 20px;
}

.notice-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.8;
  margin: 0;
}

.work-preview-header {
  margin: 35px 0 20px 0;
  text-align: center;
  position: relative;
}

.work-preview-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(212, 175, 55, 0.2);
  z-index: 1;
}

.work-preview-header span {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  padding: 0 15px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
}

.work-protected-text {
  user-select: none;
  -webkit-user-select: none;
}

.work-excerpt-card {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--gold-primary);
  padding: 24px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
}

/* Footer */
.footer {
  background: #040406;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 25px 0;
  margin-top: 80px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.footer-publisher {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
}

/* ==========================================================================
   YÖNETİCİ PANELİ (ADMIN PANEL) STİLLERİ
   ========================================================================== */

.admin-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  margin-bottom: 40px;
}

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

.admin-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
}

.admin-login-box {
  max-width: 420px;
  margin: 100px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), var(--gold-subtle-glow);
  text-align: center;
}

.form-group {
  margin-bottom: 22px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
}

.admin-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.admin-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--gold-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-danger {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #ff6b6b;
}

.btn-danger:hover {
  background: #dc3545;
  color: white;
}

/* Notifications */
.toast-msg {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 700;
  padding: 14px 25px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .about-grid, .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-links.active {
    clip-path: circle(140% at 100% 0);
  }

  .mobile-menu-btn {
    display: block;
  }
}
