@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ========== THEMES ========== */
:root,
[data-theme="romantic"] {
  --primary: #c0392b;
  --primary-hover: #e74c3c;
  --bg: #fff5f5;
  --bg-alt: #fce4e4;
  --text: #2c3e50;
  --text-light: #636e72;
  --accent: #e74c3c;
  --card-bg: #ffffff;
  --border: #f0d0d0;
  --shadow: rgba(192, 57, 43, 0.1);
  --gradient: linear-gradient(135deg, #c0392b, #e74c3c);
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="pastel"] {
  --primary: #e8a0bf;
  --primary-hover: #d487af;
  --bg: #fef9f0;
  --bg-alt: #fdf0e8;
  --text: #5d4e5a;
  --text-light: #8a7a86;
  --accent: #d4a5a5;
  --card-bg: #ffffff;
  --border: #f5d6e0;
  --shadow: rgba(232, 160, 191, 0.15);
  --gradient: linear-gradient(135deg, #e8a0bf, #d4a5a5);
}

[data-theme="dark"] {
  --primary: #e94560;
  --primary-hover: #ff6b81;
  --bg: #1a1a2e;
  --bg-alt: #16213e;
  --text: #eaeaea;
  --text-light: #a0a0b0;
  --accent: #e94560;
  --card-bg: #1f1f38;
  --border: #2a2a4a;
  --shadow: rgba(233, 69, 96, 0.1);
  --gradient: linear-gradient(135deg, #8b0000, #e94560);
}

[data-theme="sunset"] {
  --primary: #d4a017;
  --primary-hover: #f0c040;
  --bg: #fffaf0;
  --bg-alt: #fff3e0;
  --text: #5d4037;
  --text-light: #8d6e63;
  --accent: #ff8c00;
  --card-bg: #ffffff;
  --border: #f5e0c0;
  --shadow: rgba(212, 160, 23, 0.15);
  --gradient: linear-gradient(135deg, #d4a017, #ff8c00);
}

/* ========== RTL ========== */
[dir="rtl"] {
  --font-sans: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: center; }
[dir="rtl"] .card-grid { direction: rtl; }
[dir="rtl"] .gallery-grid { direction: rtl; }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }
[dir="rtl"] .header-actions { flex-direction: row-reverse; }
[dir="rtl"] .story-card { text-align: right; }
[dir="rtl"] .tips-list { padding-right: 0; }
[dir="rtl"] .form-group label { text-align: right; }

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--card-bg);
  box-shadow: 0 2px 20px var(--shadow);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  white-space: nowrap;
}

.logo span { font-style: italic; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn, .theme-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.lang-btn:hover, .theme-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

[dir="rtl"] .hamburger.active span:nth-child(1) { transform: translate(-5px, 5px) rotate(-45deg); }
[dir="rtl"] .hamburger.active span:nth-child(2) { opacity: 0; }
[dir="rtl"] .hamburger.active span:nth-child(3) { transform: translate(-5px, -5px) rotate(45deg); }

/* ========== NAVIGATION ========== */
.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--bg-alt);
  color: var(--primary);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1518199266791-5375a83190b7?w=1920&q=80') center/cover no-repeat;
  opacity: 0.15;
  animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

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

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.hero h1 span {
  display: block;
  font-style: italic;
  font-size: 0.6em;
  opacity: 0.9;
  margin-top: 10px;
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  min-height: 2em;
  transition: opacity 0.5s ease;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 25px var(--shadow);
  transition: all 0.4s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link:hover { text-decoration: underline; }

/* ========== PAGE HEADER ========== */
.page-header {
  padding: 120px 20px 60px;
  background: var(--gradient);
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 15px;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

[dir="rtl"] .page-header { text-align: right; }

/* ========== CONTENT SECTION ========== */
.content-section {
  padding: 60px 0;
}

.content-block {
  max-width: 800px;
  margin: 0 auto 50px;
}

.content-block h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.content-block p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
  color: var(--text);
}

.content-block p + p {
  margin-top: 10px;
}

.content-block .highlight {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 25px;
  border-radius: 0 12px 12px 0;
  margin: 30px 0;
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* ========== STORY CARDS (Stories page) ========== */
.story-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 25px var(--shadow);
  margin-bottom: 30px;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}

.story-card-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.story-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.story-card-body .origin {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.story-card-body p {
  line-height: 1.8;
  color: var(--text-light);
}

/* ========== POEMS (Poems page) ========== */
.poem-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 4px 25px var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.4s ease;
}

.poem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}

.poem-card blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
}

.poem-card .author {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.poem-card .language-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gradient);
  color: #fff;
  margin-bottom: 20px;
}

[dir="rtl"] .poem-card { text-align: right; }
[dir="rtl"] .poem-quote { border-right: 3px solid var(--primary); border-left: none; padding-right: 20px; padding-left: 0; }

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay span {
  color: #fff;
  font-size: 1.2rem;
}

/* ========== VIDEO EMBED ========== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 30px var(--shadow);
}

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

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* ========== TIPS ========== */
.tip-item {
  display: flex;
  gap: 25px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 25px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.tip-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 30px var(--shadow);
}

[dir="rtl"] .tip-item:hover { transform: translateX(-6px); }

.tip-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.tip-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.tip-content p {
  color: var(--text-light);
  line-height: 1.7;
}

.tip-number {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
  opacity: 0.6;
}

/* ========== FORM (Share page) ========== */
.share-form {
  max-width: 650px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 25px var(--shadow);
  border: 1px solid var(--border);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea,
[dir="rtl"] .form-group select { direction: rtl; text-align: right; }

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

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow);
}

/* ========== STORIES WALL (submitted stories) ========== */
.stories-wall {
  margin-top: 50px;
}

.stories-wall h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  text-align: center;
  color: var(--primary);
  margin-bottom: 30px;
}

.submitted-story {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 15px var(--shadow);
}

.submitted-story h4 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 5px;
}

.submitted-story .meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.submitted-story p {
  line-height: 1.8;
  color: var(--text);
}

/* ========== BLOG ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 25px var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 25px;
}

.blog-card-body .date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--primary); }

.blog-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

[dir="rtl"] .blog-card-body { text-align: right; }

/* ========== BLOG POST ========== */
.blog-post-content {
  max-width: 750px;
  margin: 0 auto;
}

.blog-post-content .meta {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.blog-post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary);
  margin: 40px 0 20px;
}

.blog-post-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.blog-post-content .featured-img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
}

[dir="rtl"] .blog-post-content { text-align: right; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

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

[dir="rtl"] .back-link .arrow { display: inline-block; transform: scaleX(-1); }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-alt);
  padding: 60px 20px 30px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.footer-col a {
  display: block;
  color: var(--text-light);
  margin-bottom: 10px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

[dir="rtl"] .lightbox-close { right: auto; left: 30px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    z-index: 999;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    border-bottom: 2px solid var(--border);
  }

  .nav.open { transform: translateY(0); }

  .nav-links {
    flex-direction: column;
    gap: 5px;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
  }

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

  .story-card-img {
    min-height: 200px;
  }

  .header-actions {
    display: none;
  }

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

  .header-actions {
    gap: 6px;
  }

  .lang-btn, .theme-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 90vh;
    padding: 80px 20px 40px;
  }

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

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

  .poem-card blockquote {
    font-size: 1.1rem;
  }

  .tip-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-form {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem;
  }

  .section {
    padding: 50px 0;
  }

  .page-header {
    padding: 100px 20px 40px;
  }
}

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}

.nav-links a:focus-visible,
.lang-btn:focus-visible,
.theme-btn:focus-visible,
.hamburger:focus-visible,
.submit-btn:focus-visible,
.back-link:focus-visible,
.card:focus-visible,
.gallery-item:focus-visible,
.blog-card:focus-visible,
.story-card:focus-visible,
.tip-item:focus-visible,
.poem-card:focus-visible,
.footer-col a:focus-visible,
.lightbox-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ========== NOSCRIPT ========== */
.noscript-banner {
  background: #e74c3c;
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.9rem;
}

/* ========== LIGHTBOX FIXES ========== */
.lightbox:focus { outline: none; }
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* ========== LANGUAGE INDICATOR ========== */
.current-lang {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ========== LANGUAGE TABS ========== */
.lang-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.lang-tab {
  background: none;
  border: 2px solid var(--border);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.lang-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.lang-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

#songGrid .fade-in {
  display: none;
}

@media print {
  .header, .nav, .footer, .lightbox, .hamburger, .theme-btn, .lang-btn { display: none !important; }
  .section, .page-header, .content-section { padding: 20px 0 !important; }
  body { color: #000; background: #fff; }
  .hero, .hero-content { min-height: auto; padding: 20px 0; background: none !important; color: #000 !important; }
  .hero-content h1 { color: #000 !important; }
}
