/*
Theme Name: LyricEye Pro
Theme URI: https://lyriceye.com
Author: LyricEye Owner
Author URI: https://lyriceye.com
Description: RankMath 85+ SEO & Core Web Vitals Optimized Lyrics Theme for LyricEye.com
Version: 4.0
Text Domain: lyriceye
*/

:root {
  --primary: #e11d48;
  --header-bg: #e11d48;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --hero-height: 350px;
  --hero-darkness: 0.92;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header & Hamburger */
.site-header {
  background: var(--header-bg);
  color: #fff;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-left { display: flex; align-items: center; gap: 14px; }
.hamburger-btn {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-logo { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: 0.3px; }
.header-btn {
  background: #0f172a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

/* Slide-Out Hamburger Drawer */
.nav-drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); z-index: 1100; }
.nav-drawer-backdrop.open { display: block; }
.nav-drawer {
  position: fixed; top: 0; left: -300px; width: 285px; height: 100vh; background: #ffffff;
  z-index: 1200; transition: left 0.25s ease; overflow-y: auto; padding: 20px;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.nav-drawer.open { left: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.drawer-close { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.drawer-menu { list-style: none; }
.drawer-menu li a { display: block; padding: 10px 12px; color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 8px; }
.drawer-menu li a:hover { background: #f1f5f9; color: var(--primary); }
.drawer-sub { padding-left: 18px; border-left: 2px solid var(--border); margin: 4px 0 8px 12px; list-style: none; }
.drawer-sub li a { font-size: 13px; padding: 7px 10px; color: var(--text-muted); }

/* Hero Banner with Fixed Responsive Height & Vintage Overlay */
.lyrics-hero {
  position: relative;
  background-color: var(--dark-bg);
  color: #fff;
  height: var(--hero-height);
  padding: 24px 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg-auto { position: absolute; inset: 0; background-size: cover; background-position: center center; z-index: 1; }
.hero-vintage-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.38) 0%, rgba(15, 23, 42, 0.65) 50%, rgba(8, 10, 16, var(--hero-darkness)) 100%);
  box-shadow: inset 0 -45px 75px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.hero-content { position: relative; z-index: 3; max-width: 820px; width: 100%; margin: 0 auto; }
.hero-title { font-size: clamp(22px, 3.8vw, 34px); font-weight: 800; margin-bottom: 6px; }
.hero-artist a { color: #fbbf24; font-size: 17px; font-weight: 700; text-decoration: underline; }
.hero-meta { font-size: 12px; color: #cbd5e1; margin: 8px 0 12px; }
.hero-intro { font-size: 14px; color: #e2e8f0; line-height: 1.65; }
.hero-intro a { color: #fbbf24; text-decoration: underline; }

/* Main Grid */
.main-container {
  max-width: 1140px;
  margin: 26px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}
.main-container.layout-centered { max-width: 820px; grid-template-columns: 1fr; }
.main-container.layout-fullwidth { max-width: 1320px; grid-template-columns: 2fr 1fr; }

/* Lyrics Card & Exact Stanza Formatting */
.lyrics-card { background: var(--card-bg); padding: 26px; border-radius: 12px; border: 1px solid var(--border); }
.seo-subhead { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 14px; }
.lang-tabs { display: flex; gap: 10px; border-bottom: 2px solid var(--border); padding-bottom: 12px; margin-bottom: 16px; }
.tab-btn { padding: 8px 18px; border: 1px solid var(--border); background: #fff; border-radius: 6px; font-weight: 700; cursor: pointer; font-size: 14px; }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.lyrics-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.action-pill { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); background: #f8fafc; font-size: 13px; cursor: pointer; font-weight: 600; }

/* Exact Lyrics Stanza Styling (Preserves Line Breaks Without Extra Double Gaps) */
.lyrics-text { font-size: 16.5px; line-height: 1.75; color: #1e293b; }
.lyrics-text p { margin-bottom: 18px; }
.lyrics-text p:last-child { margin-bottom: 0; }
.lyrics-text a { color: var(--primary); text-decoration: underline; }

/* YouTube Responsive Embed */
.yt-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; background: #000; }
.yt-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Sidebar & Credits */
.sidebar-box { background: var(--card-bg); padding: 20px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 24px; }
.sidebar-heading { font-size: 15px; font-weight: 800; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table td { padding: 9px 6px; border-bottom: 1px solid var(--border); }
.info-label { font-weight: 700; color: var(--text-main); width: 38%; }
.info-val a { color: var(--primary); font-weight: 600; text-decoration: none; }
.info-val a:hover { text-decoration: underline; }

/* Related / Recommended Songs */
.rec-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.rec-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #e2e8f0; }
.rec-title { font-size: 14px; font-weight: 600; color: var(--text-main); line-height: 1.3; }

/* FAQ & Common Notice Box */
.faq-box { margin-top: 24px; background: #fff; padding: 24px; border-radius: 12px; border: 1px solid var(--border); }
.faq-item { margin-bottom: 14px; }
.faq-q { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.faq-a { font-size: 14px; color: var(--text-muted); }
.correction-notice {
  margin-top: 20px;
  padding: 16px 18px;
  background: #f1f5f9;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-size: 13.5px;
  color: #334155;
}
.correction-notice a { color: var(--primary); font-weight: 700; text-decoration: underline; }

/* Homepage & Submit Form */
.home-wrap { max-width: 1180px; margin: 24px auto; padding: 0 16px; }
.cat-pills-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat-pill { padding: 7px 15px; background: #fff; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; font-weight: 700; color: var(--text-main); text-decoration: none; }
.cat-pill:hover, .cat-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.songs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 36px; }
.song-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.song-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.song-card-thumb { width: 100%; height: 155px; object-fit: cover; background: #1e293b; }
.song-card-body { padding: 14px; }
.song-card-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--primary); background: #fff1f2; padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.song-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.song-card-meta { font-size: 12px; color: var(--text-muted); }

.submit-form-wrap { max-width: 720px; margin: 28px auto; background: #fff; padding: 28px; border-radius: 12px; border: 1px solid var(--border); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; }
.submit-btn { background: var(--primary); color: #fff; border: none; padding: 13px 24px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; width: 100%; }

.site-footer { background: var(--dark-bg); color: #94a3b8; padding: 36px 5%; margin-top: 50px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 16px; }
.footer-links a { color: #e2e8f0; text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-links a:hover { color: #fbbf24; }

@media (max-width: 1024px) { .lyrics-hero { height: calc(var(--hero-height) - 40px); } }
@media (max-width: 768px) {
  .main-container, .main-container.layout-fullwidth { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .lyrics-hero { height: calc(var(--hero-height) - 80px); padding: 16px 4%; }
}