/* ============================================
   İbrahim Halil Tokmak – Kişisel Web Sitesi
   Design System & Styles
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --color-bg:          #FAF7F2;
  --color-bg-alt:      #F5F0E8;
  --color-bg-card:     #FFFFFF;
  --color-sage:        #A8B5A0;
  --color-sage-light:  #C5CEBD;
  --color-sage-dark:   #8A9A80;
  --color-text:        #3D3929;
  --color-text-muted:  #8A7F6E;
  --color-text-light:  #B0A594;
  --color-gold:        #C4A265;
  --color-gold-light:  #D4BC8E;
  --color-white:       #FFFFFF;
  --color-border:      #E8E2D8;
  --color-overlay:     rgba(61, 57, 41, 0.5);

  /* Typography */
  --font-heading:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic:   'Amiri', serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;

  /* Borders & Shadows */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 50%;

  --shadow-sm:   0 1px 3px rgba(61, 57, 41, 0.06), 0 1px 2px rgba(61, 57, 41, 0.04);
  --shadow-md:   0 4px 12px rgba(61, 57, 41, 0.08), 0 2px 4px rgba(61, 57, 41, 0.04);
  --shadow-lg:   0 8px 24px rgba(61, 57, 41, 0.10), 0 4px 8px rgba(61, 57, 41, 0.04);
  --shadow-xl:   0 16px 48px rgba(61, 57, 41, 0.12), 0 8px 16px rgba(61, 57, 41, 0.06);

  /* Transitions */
  --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width:     1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-sage-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-arabic {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  line-height: 2;
  direction: rtl;
  text-align: right;
  color: var(--color-sage-dark);
}

/* ---------- Decorative Elements ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
  color: var(--color-gold);
  font-size: 1.5rem;
  opacity: 0.6;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-light), transparent);
}

.decorative-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-sage), var(--color-gold));
  border-radius: 2px;
  margin: var(--space-md) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header .decorative-line {
  margin: var(--space-md) auto;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: var(--space-md) auto 0;
  font-size: 1.05rem;
}

/* ---------- Header & Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.nav-link.active {
  color: var(--color-sage-dark);
  background: rgba(168, 181, 160, 0.12);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-sage);
  border-radius: 2px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(168, 181, 160, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 162, 101, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(168, 181, 160, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(168, 181, 160, 0.15);
  border: 1px solid rgba(168, 181, 160, 0.25);
  border-radius: var(--radius-xl);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
  color: var(--color-sage-dark);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 16px rgba(168, 181, 160, 0.35);
  transition: all var(--transition-base);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 181, 160, 0.45);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

/* Floating decorative elements */
.hero-float {
  position: absolute;
  opacity: 0.07;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.hero-float:nth-child(1) {
  top: 15%;
  left: 8%;
  font-size: 4rem;
  animation-delay: 0s;
}

.hero-float:nth-child(2) {
  top: 60%;
  right: 8%;
  font-size: 3rem;
  animation-delay: 2s;
}

.hero-float:nth-child(3) {
  bottom: 15%;
  left: 15%;
  font-size: 2.5rem;
  animation-delay: 4s;
}

.hero-image-section {
  position: relative;
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-image-section img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Section Layout ---------- */
.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

/* ---------- Content Grid ---------- */
.content-grid {
  display: grid;
  gap: var(--space-xl);
}

.content-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.content-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---------- Card Component ---------- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-sage-light);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-content {
  padding: var(--space-lg);
}

.card-category {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(168, 181, 160, 0.12);
  color: var(--color-sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.card-title a {
  color: var(--color-text);
}

.card-title a:hover {
  color: var(--color-sage-dark);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.card-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-sage-dark);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* Card with Icon */
.card-icon-wrapper {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(168, 181, 160, 0.15), rgba(196, 162, 101, 0.10));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-sage-dark);
}

.card-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

/* Featured Card */
.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}

.card-featured .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl);
}

.card-featured .card-title {
  font-size: 1.4rem;
}

.card-featured .card-excerpt {
  -webkit-line-clamp: 5;
}

/* ---------- Latest Content Section ---------- */
.latest-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.latest-tab {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.latest-tab:hover {
  border-color: var(--color-sage-light);
  color: var(--color-text);
}

.latest-tab.active {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: var(--color-white);
}

.latest-tab svg {
  width: 16px;
  height: 16px;
}

/* ---------- Blog / Article Styles ---------- */
.blog-list {
  display: grid;
  gap: var(--space-xl);
}

.blog-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-sage-light);
}

.blog-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--space-xs);
  min-width: 60px;
}

.blog-card-date .day {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  line-height: 1;
}

.blog-card-date .month {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.blog-card-content h3 {
  margin-bottom: var(--space-sm);
}

.blog-card-content h3 a {
  color: var(--color-text);
}

.blog-card-content h3 a:hover {
  color: var(--color-sage-dark);
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.tag {
  display: inline-block;
  padding: 2px var(--space-sm);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

/* Article Full View */
.article-full {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-4xl);
}

.article-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.article-header .card-category {
  margin-bottom: var(--space-md);
}

.article-header h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.article-header .article-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.9;
}

.article-body p {
  margin-bottom: var(--space-lg);
}

.article-body strong {
  color: var(--color-text);
  font-weight: 600;
}

.article-body ol,
.article-body ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.article-body li {
  margin-bottom: var(--space-sm);
  list-style: disc;
  color: var(--color-text);
}

.article-body ol li {
  list-style: decimal;
}

.article-body blockquote {
  border-left: 3px solid var(--color-gold);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-xl) 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.article-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-sage-dark);
}

/* ---------- Video Grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.video-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  color: var(--color-sage-dark);
  margin-left: 3px;
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.video-info {
  padding: var(--space-lg);
}

.video-info h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.video-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.video-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.video-meta svg {
  width: 14px;
  height: 14px;
}

/* ---------- Audio Player ---------- */
.audio-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.audio-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.audio-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-sage-light);
}

.audio-card.playing {
  border-color: var(--color-sage);
  background: linear-gradient(135deg, rgba(168, 181, 160, 0.05), rgba(196, 162, 101, 0.03));
}

.audio-play-btn {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(168, 181, 160, 0.3);
}

.audio-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(168, 181, 160, 0.4);
}

.audio-play-btn svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.audio-play-btn .pause-icon {
  margin-left: 0;
}

.audio-info {
  flex: 1;
  min-width: 0;
}

.audio-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-info .audio-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-progress-section {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.audio-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--color-bg-alt);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.audio-progress-bar:hover {
  height: 6px;
}

.audio-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-sage), var(--color-gold));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--color-text-light);
  font-variant-numeric: tabular-nums;
}

.audio-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.audio-duration {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ---------- Contact Section ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info {
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  border-radius: var(--radius-lg);
  color: var(--color-white);
}

.contact-info h3 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.contact-info > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail-text h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-detail-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.contact-form {
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(168, 181, 160, 0.12);
  background: var(--color-white);
}

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

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(168, 181, 160, 0.3);
  border: none;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(168, 181, 160, 0.4);
}

.form-submit svg {
  width: 18px;
  height: 18px;
}

.form-message {
  display: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: var(--space-md);
}

.form-message.success {
  display: block;
  background: rgba(168, 181, 160, 0.15);
  color: var(--color-sage-dark);
  border: 1px solid var(--color-sage-light);
}

.form-message.error {
  display: block;
  background: rgba(196, 100, 100, 0.1);
  color: #9B4D4D;
  border: 1px solid rgba(196, 100, 100, 0.25);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo-text {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.footer-brand .logo-text span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-links h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-sage-light);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Page Header (Sub Pages) ---------- */
.page-header {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(168, 181, 160, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(196, 162, 101, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-sage-dark);
}

.breadcrumb span {
  opacity: 0.5;
}

/* ---------- Filter / Category Tabs ---------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-tab {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-tab:hover {
  border-color: var(--color-sage-light);
  color: var(--color-text);
}

.filter-tab.active {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: var(--color-white);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  color: var(--color-text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
  margin-bottom: var(--space-lg);
}

.empty-state h3 {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}

.pagination button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.pagination button:hover {
  border-color: var(--color-sage-light);
  color: var(--color-text);
}

.pagination button.active {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: var(--color-white);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 999;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--color-sage-dark);
  border-color: var(--color-sage-light);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Intersection Observer animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-bg) 50%, var(--color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
  .content-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  /* Mobile Navigation */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl);
    gap: var(--space-xs);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
  }

  /* Mobile overlay */
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

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

  /* Content */
  .content-grid-2,
  .content-grid-3 {
    grid-template-columns: 1fr;
  }

  .card-featured {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  /* Audio card mobile */
  .audio-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
  }

  .audio-progress-section {
    width: 100%;
  }

  .audio-card-meta {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }

  /* Blog card mobile */
  .blog-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .blog-card-date {
    flex-direction: row;
    gap: var(--space-sm);
  }

  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .contact-info {
    padding: var(--space-xl);
  }

  .contact-form {
    padding: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .hero-badge {
    font-size: 0.72rem;
    padding: var(--space-xs) var(--space-md);
  }

  .hero-cta {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.88rem;
    width: 100%;
    justify-content: center;
  }

  .latest-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .latest-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
  }

  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ============================================
   Günlük & Manevi Araçlar (Tools) Styles
   ============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.tool-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-sage-light);
  transform: translateY(-3px);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px dashed var(--color-border);
}

.tool-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(168, 181, 160, 0.2), rgba(196, 162, 101, 0.15));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage-dark);
  flex-shrink: 0;
}

.tool-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

/* 1. Canlı Saat Widget */
.clock-display-wrapper {
  text-align: center;
  padding: var(--space-xl) 0;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.live-clock {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-sage-dark);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.live-date {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  margin-top: var(--space-sm);
}

.live-greeting {
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Namaz Vakitleri */
.prayer-times-wrapper {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--color-border);
}

.prayer-times-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.prayer-times-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-sage-dark);
}

.city-select {
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-base);
}

.city-select:focus {
  border-color: var(--color-sage-light);
}

.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.prayer-time-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  text-align: center;
  transition: all var(--transition-base);
}

.prayer-time-item.active-vakit {
  background: rgba(168, 181, 160, 0.15);
  border-color: var(--color-sage-dark);
  box-shadow: 0 0 0 1px var(--color-sage-dark);
}

.pt-name {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.pt-time {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.prayer-source {
  text-align: right;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* 2. İnteraktif Takvim */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.calendar-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.calendar-nav-btns {
  display: flex;
  gap: var(--space-xs);
}

.cal-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cal-btn:hover {
  background: var(--color-sage);
  color: var(--color-white);
  border-color: var(--color-sage);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: all var(--transition-fast);
  cursor: default;
}

.calendar-day.other-month {
  color: var(--color-text-light);
  opacity: 0.5;
}

.calendar-day.today {
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  color: var(--color-white);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(168, 181, 160, 0.4);
}

.calendar-footer {
  text-align: center;
  margin-top: var(--space-lg);
}

/* 3. Kişisel Not Defteri */
.personal-notes-area {
  width: 100%;
  min-height: 180px;
  padding: var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text);
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast);
}

.personal-notes-area:focus {
  border-color: var(--color-sage);
  background: var(--color-white);
}

.note-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.note-btn {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

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

.note-btn.primary:hover {
  background: var(--color-sage-dark);
}

.note-btn.secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.note-btn.secondary:hover {
  border-color: var(--color-sage-light);
}

.note-status {
  font-size: 0.8rem;
  margin-top: var(--space-sm);
  min-height: 20px;
}

.note-status.success { color: var(--color-sage-dark); }
.note-status.neutral { color: var(--color-text-muted); }

/* 4. Hesap Makinesi */
.calculator-wrapper {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.calc-display {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  text-align: right;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  word-break: break-all;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.calc-btn {
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 500;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.calc-btn:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-sage-light);
}

.calc-btn.op {
  background: rgba(168, 181, 160, 0.15);
  color: var(--color-sage-dark);
  font-weight: 600;
}

.calc-btn.op:hover {
  background: rgba(168, 181, 160, 0.28);
}

.calc-btn.eq {
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  color: var(--color-white);
  font-weight: 600;
}

.calc-btn.eq:hover {
  box-shadow: 0 4px 12px rgba(168, 181, 160, 0.4);
}

/* 5. Zikirmatik */
.zikirmatik-wrapper {
  text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.zikir-text-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  text-align: center;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.zikir-counter-box {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-alt));
  border: 4px solid var(--color-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.05), 0 6px 20px rgba(168, 181, 160, 0.2);
  transition: transform 0.15s ease;
}

.zikir-counter {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  font-variant-numeric: tabular-nums;
}

.zikir-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.zikir-btn {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.zikir-btn.count {
  background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark));
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(168, 181, 160, 0.4);
  flex: 1;
  max-width: 200px;
}

.zikir-btn.count:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 181, 160, 0.5);
}

.zikir-btn.reset {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.zikir-btn.reset:hover {
  color: #9B4D4D;
  border-color: #9B4D4D;
}

.zikir-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: var(--space-md);
}

.zikir-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-sage), var(--color-gold));
  width: 0%;
  transition: width 0.3s ease;
}

/* ---------- Print Styles ---------- */
@media print {
  .header,
  .footer,
  .back-to-top,
  .mobile-menu-btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .article-full {
    padding: 0;
  }
}
