/*
Theme Name: Manele și Cărți
Theme URI: https://manelesicarti.ro/
Author: Georgiana
Description: Temă custom pentru landing page-ul „Manele și Cărți" — reconstruit 1:1 din HTML-ul original (Tailwind + CSS/JS custom). Front page-ul e LP-ul, iar blogul WordPress rămâne disponibil pentru recenzii și eseuri.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: manele-si-carti
*/

/* =============================================================
   Stilurile temei (mutate din assets/css/style.css).
   Editează DIRECT aici — acesta e stylesheet-ul încărcat de WordPress.
   ============================================================= */

/* =============================================================
   MANELE ȘI CĂRȚI — custom styles
   Layer peste Tailwind. Tot ce ține de atmosferă cinematică,
   micro-animații, hover-uri și texturi.
   ============================================================= */

:root {
  --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------- Smooth scroll & selecția textului -------- */
html { scroll-behavior: smooth; }

::selection {
  background: #5C1A1B;
  color: #F5EFE6;
}

body {
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
}

/* -------------------------------------------------------------
   GRAIN OVERLAY — textură subtilă de film pe toată pagina
   ------------------------------------------------------------- */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* -------------------------------------------------------------
   PRELOADER
   ------------------------------------------------------------- */
.preloader-line {
  animation: preloaderSweep 1.6s var(--ease-cinema) infinite;
}
@keyframes preloaderSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

body.loaded #preloader {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-cinema);
}

/* -------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------- */
#navbar.scrolled {
  background-color: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 20, 16, 0.08);
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-cinema);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: #5C1A1B;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-cinema);
}
.nav-link:hover { color: #5C1A1B; }
.nav-link:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------------
   HERO
   ------------------------------------------------------------- */
.hero-img {
  animation: heroBreathe 18s ease-in-out infinite alternate;
  filter: saturate(0.95) contrast(1.05);
}
@keyframes heroBreathe {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}

.scroll-pulse {
  animation: scrollPulse 2.2s var(--ease-cinema) infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(200%); }
  100% { transform: translateY(200%); }
}

/* -------------------------------------------------------------
   BUTOANE
   ------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: #F5EFE6;
  color: #1A1410;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid #F5EFE6;
  border-radius: 999px;
  transition: all 0.4s var(--ease-cinema);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: #5C1A1B;
  color: #F5EFE6;
  border-color: #5C1A1B;
}
.btn-primary .arrow {
  transition: transform 0.4s var(--ease-cinema);
}
.btn-primary:hover .arrow {
  transform: translateX(6px);
}

.btn-primary--dark {
  background: #1A1410;
  color: #F5EFE6;
  border-color: #1A1410;
}
.btn-primary--dark:hover {
  background: #5C1A1B;
  border-color: #5C1A1B;
}

.btn-primary--light {
  justify-content: center;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  color: #F5EFE6;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 239, 230, 0.4);
  border-radius: 999px;
  transition: all 0.4s var(--ease-cinema);
}
.btn-ghost:hover {
  border-color: #F5EFE6;
  background: rgba(245, 239, 230, 0.08);
}

/* -------------------------------------------------------------
   CARDS — universul proiectului
   Grid de 8 cards cu separator subtle (1px gap pe ink/10)
   ------------------------------------------------------------- */
.card-uni {
  background: #EFE7D8;
  padding: 2.5rem 2rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: background 0.5s var(--ease-cinema);
  cursor: default;
  position: relative;
}
.card-uni:hover {
  background: #F5EFE6;
}
.card-uni::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 1px;
  background: #5C1A1B;
  transition: width 0.6s var(--ease-cinema);
}
.card-uni:hover::before {
  width: 100%;
}

.card-icon {
  width: 36px;
  height: 36px;
  color: #5C1A1B;
  margin-bottom: 1.75rem;
  transition: transform 0.5s var(--ease-cinema);
}
.card-uni:hover .card-icon {
  transform: translateY(-4px);
}
.card-icon svg { width: 100%; height: 100%; }

.card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  line-height: 1.25;
  color: #1A1410;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.card-desc {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(26, 20, 16, 0.7);
}

/* -------------------------------------------------------------
   TESTIMONIALE
   ------------------------------------------------------------- */
.testimonial {
  border-left: 1px solid rgba(245, 239, 230, 0.2);
  padding-left: 1.5rem;
  transition: border-color 0.4s var(--ease-cinema);
}
.testimonial:hover {
  border-left-color: #B89261;
}

/* -------------------------------------------------------------
   COLABORĂRI — cards
   ------------------------------------------------------------- */
.collab-card {
  background: #EFE7D8;
  padding: 2.5rem 2rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-cinema), background 0.5s var(--ease-cinema);
}
.collab-card:hover {
  transform: translateY(-4px);
  background: #F5EFE6;
  box-shadow: 0 20px 40px -20px rgba(60, 40, 23, 0.18);
}

.collab-num {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #B89261;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.collab-title {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: #1A1410;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.collab-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(26, 20, 16, 0.72);
}

/* -------------------------------------------------------------
   GALLERY STRIP
   ------------------------------------------------------------- */
.gallery-strip {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 1.5rem;
}
.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  width: max-content;
}

.gallery-item {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .gallery-item { width: 420px; }
}
.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.92) contrast(1.04);
  transition: filter 0.6s var(--ease-cinema), transform 0.6s var(--ease-cinema);
}
@media (min-width: 768px) {
  .gallery-item img { height: 420px; }
}
.gallery-item:hover img {
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.01);
}
.gallery-item figcaption {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: rgba(26, 20, 16, 0.6);
  font-size: 0.95rem;
  margin-top: 0.85rem;
  padding-left: 0.25rem;
}

/* -------------------------------------------------------------
   CONTACT — linii și formular
   ------------------------------------------------------------- */
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: #F5EFE6;
}
.contact-value {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  line-height: 1.2;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(245, 239, 230, 0.18);
  transition: border-color 0.4s var(--ease-cinema), color 0.4s var(--ease-cinema);
}
.contact-line:hover .contact-value {
  color: #B89261;
  border-color: #B89261;
}

.contact-form {
  background: rgba(245, 239, 230, 0.04);
  border: 1px solid rgba(245, 239, 230, 0.12);
  padding: 2.25rem;
  border-radius: 4px;
}
@media (min-width: 768px) {
  .contact-form { padding: 2.75rem; }
}

.form-field {
  margin-bottom: 1.5rem;
}
.form-field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(245, 239, 230, 0.55);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 239, 230, 0.2);
  padding: 0.6rem 0;
  color: #F5EFE6;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  outline: none;
  transition: border-color 0.4s var(--ease-cinema);
}
.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: #B89261;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(245, 239, 230, 0.3);
  font-style: italic;
}

/* -------------------------------------------------------------
   FOOTER LINKS
   ------------------------------------------------------------- */
.footer-link {
  position: relative;
  transition: color 0.3s var(--ease-cinema);
}
.footer-link:hover {
  color: #B89261;
}

/* -------------------------------------------------------------
   REVEAL ANIMATION — text apare la scroll
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s var(--ease-cinema),
    transform 1.1s var(--ease-cinema);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; }
  .scroll-pulse { animation: none; }
}

/* -------------------------------------------------------------
   RESPONSIVE — micro-ajustări tipografice
   ------------------------------------------------------------- */
@media (max-width: 640px) {
  .card-uni { min-height: 220px; padding: 2rem 1.5rem; }
  .contact-value { font-size: 1.25rem; }
}


/* =============================================================
   Ajustări custom (adăugate manual)
   ============================================================= */
#navbar {
	background: rgba(245, 239, 230, 0.92);
}
