/* =====================================================
   MINARA BLOG — MASTER STYLE.CSS
   Final Pro Build (Static, Fast, Future-Ready)
===================================================== */

/* =========================
   THEME SYSTEM
========================= */
:root {
  --bg-main: #0b1320;
  --bg-card: rgba(255, 255, 255, 0.08);
  --text-main: #f1f5f9;
  --text-muted: #cbd5e1;
  --accent: #38bdf8;
  --border-soft: rgba(255,255,255,0.15);
}

body.light {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent: #2563eb;
  --border-soft: rgba(0,0,0,0.1);
}

/* =========================
   BASE RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* =========================
   GLOBAL ELEMENTS
========================= */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   HEADER
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
  text-align: center;
  padding: 16px 12px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent);
}

nav {
  margin-top: 10px;
}

nav a {
  margin: 0 10px;
  font-weight: 600;
  position: relative;
  color: #fff;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

#themeToggle {
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--border-soft);
  color: #fff;
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
}

/* =========================
   LAYOUT
========================= */
main {
  display: block;
}

.section {
  padding: 80px 20px;
  text-align: center;
}

/* =========================
   CARDS (UNIFIED)
========================= */
.card {
  max-width: 900px;
  margin: 40px auto;
  padding: 32px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* =========================
   HERO
========================= */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 80px;
  background: linear-gradient(
    120deg,
    #020617,
    #0b1320,
    #0e1a2b,
    #111827
  );
  background-size: 300% 300%;
  animation: heroGradient 18s ease infinite;
  color: #ffffff;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin-bottom: 22px;
}

.tagline {
  margin: 14px 0;
  font-size: 20px;
  color: #d1d5db;
}

/* =========================
   SEARCH
========================= */
#searchInput {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  margin: 20px auto 30px;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 16px;
}

#searchInput::placeholder {
  color: var(--text-muted);
}

/* =========================
   QUOTES / TEXT BLOCKS
========================= */
.quotes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote {
  padding: 14px 16px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.highlight {
  background: #fde68a;
  color: #111827;
  font-weight: 600;
  padding: 2px 4px;
  border-radius: 4px;
}

/* =========================
   VIDEO GRID
========================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-grid iframe {
  width: 100%;
  height: 460px;
  border-radius: 14px;
  border: none;
}

/* =========================
   BUTTONS
========================= */
button,
#loadMoreBtn {
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #000;
  font-size: 15px;
  font-weight: 600;
}

/* =========================
   SCROLL PROGRESS
========================= */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
}

/* =========================
   FOOTER
========================= */
.footer-pro {
  background: rgba(0,0,0,0.45);
  padding: 32px 20px;
  text-align: center;
  margin-top: 80px;
}

.footer-pro p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 10px;
  font-weight: 500;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  .profile {
    width: 120px;
    height: 120px;
  }

  nav a {
    display: inline-block;
    margin: 6px;
  }

  .tagline {
    font-size: 18px;
  }
}
