/* ==========================================
   SHOPYREUS - Modern Movie Blog Styles
   ========================================== */

:root {
  --primary: #e50914;
  --primary-dark: #b20710;
  --accent: #f5c518;
  --dark: #141414;
  --dark-2: #1f1f1f;
  --dark-3: #2a2a2a;
  --dark-4: #333;
  --text: #e5e5e5;
  --text-muted: #999;
  --text-dark: #333;
  --light: #f8f9fa;
  --border: #333;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: #ffd94d; }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.site-header {
  background: linear-gradient(180deg, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0.8) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--text); font-weight: 300; }
.logo-icon { font-size: 1.8rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav a {
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--dark-3);
}

.search-toggle { cursor: pointer; font-size: 1rem; padding: 8px 12px !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Search Bar */
.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
}
.search-bar.open { max-height: 80px; }
.search-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  gap: 8px;
}
.search-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--dark-3);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}
.search-form input:focus { outline: none; border-color: var(--primary); }
.search-form button {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
.search-form button:hover { background: var(--primary-dark); }

/* ========== HERO ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark-2) 0%, #0a0a0a 100%);
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(229,9,20,0.08) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(245,197,24,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-categories {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
}
.hero-cat:hover {
  background: var(--dark-4);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.hero-cat-icon { font-size: 1.4rem; }

/* ========== PAGE HERO ========== */
.page-hero {
  background: linear-gradient(135deg, var(--dark-2) 0%, #0a0a0a 100%);
  padding: 60px 24px 48px;
  text-align: center;
}
.page-hero-inner { max-width: 700px; margin: 0 auto; }
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero p { font-size: 1.05rem; color: var(--text-muted); }

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== SECTION TITLES ========== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-top: 48px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge {
  font-size: 0.8rem;
  background: var(--dark-3);
  color: var(--text-muted);
  padding: 4px 14px;
  border-radius: 50px;
  font-weight: 600;
}

/* ========== POST GRID ========== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  padding-bottom: 48px;
}

.post-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--dark-4);
}

.post-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}

.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); }

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.post-card-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.post-card-author .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover { gap: 8px; }

/* ========== FEATURED ========== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  padding-bottom: 24px;
}
.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--dark-4);
}
.featured-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 0;
}
.featured-card:hover img { transform: scale(1.05); }
.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 28px 28px;
  background: linear-gradient(transparent, rgba(20,20,20,0.95) 60%);
  z-index: 1;
}
.featured-overlay .category-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--primary);
  color: white;
  margin-bottom: 10px;
}
.featured-overlay h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.featured-overlay h3 a { color: white; }
.featured-overlay h3 a:hover { color: var(--accent); }
.featured-overlay p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ========== CATEGORY FILTER ========== */
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.category-filter a {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--dark-2);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.category-filter a:hover,
.category-filter a.active {
  color: var(--text);
  background: var(--dark-3);
  border-color: var(--dark-4);
}
.category-filter a.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========== SINGLE POST ========== */
.post-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.post-single-header { margin-bottom: 32px; }
.post-single .category-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary);
  color: white;
  margin-bottom: 16px;
}
.post-single h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.post-single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.post-single-meta .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
}
.post-single-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}
.post-single-content {
  font-size: 1.05rem;
  line-height: 1.9;
}
.post-single-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--accent);
}
.post-single-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 12px;
}
.post-single-content p { margin-bottom: 20px; }
.post-single-content em { color: var(--accent); }
.post-single-content ul, .post-single-content ol { margin: 0 0 20px 24px; }
.post-single-content li { margin-bottom: 8px; }

.post-single-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-single-nav a {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
  max-width: 45%;
}
.post-single-nav a:hover {
  background: var(--dark-3);
  border-color: var(--dark-4);
}
.post-single-nav .nav-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ========== ABOUT PAGE ========== */
.about-content { padding: 48px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}
.about-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--accent);
}
.about-text h2:first-child { margin-top: 0; }
.about-text p { margin-bottom: 16px; line-height: 1.8; }
.about-text ul { margin: 0 0 24px 24px; }
.about-text li { margin-bottom: 8px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.team-member {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  margin: 0 auto 12px;
}
.team-member h4 { font-size: 1rem; margin-bottom: 4px; }
.team-member p { font-size: 0.8rem; color: var(--text-muted); }

.about-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.sidebar-card h3 { font-size: 1rem; margin-bottom: 16px; }
.facts-list, .values-list { list-style: none; }
.facts-list li, .values-list li { padding: 6px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.facts-list li:last-child, .values-list li:last-child { border-bottom: none; }
.values-list li { display: flex; align-items: center; gap: 8px; }

/* ========== CONTACT ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.info-card p { color: var(--text-muted); font-size: 0.9rem; }

.contact-form-wrap { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }

/* ========== LEGAL ========== */
.legal-content { padding: 48px 0; max-width: 800px; margin: 0 auto; }
.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}
.legal-section h3 { font-size: 1.1rem; font-weight: 600; margin: 20px 0 10px; }
.legal-section p { margin-bottom: 12px; line-height: 1.8; }
.legal-section ul { margin: 0 0 16px 24px; }
.legal-section li { margin-bottom: 8px; }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text); }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--accent); }

/* ========== ADMIN ========== */
.admin-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.admin-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.admin-card h1 { font-size: 1.5rem; margin-bottom: 24px; text-align: center; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--dark-3);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--dark-3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--dark-4); }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }
.btn-block { width: 100%; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-error { background: rgba(220,53,69,0.15); border: 1px solid rgba(220,53,69,0.3); color: #f87171; }
.alert-success { background: rgba(40,167,69,0.15); border: 1px solid rgba(40,167,69,0.3); color: #6ee7b7; }

.dashboard-header {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.dashboard-header .header-inner { height: 60px; }
.dashboard-main { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.dashboard-main h1 { font-size: 1.6rem; margin-bottom: 28px; }
.admin-form { background: var(--dark-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.table-responsive { overflow-x: auto; }

.posts-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--dark-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.posts-table th,
.posts-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.posts-table th {
  background: var(--dark-3);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.posts-table tr:last-child td { border-bottom: none; }
.posts-table .actions { display: flex; gap: 8px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 40px; }
  .hero h1 { font-size: 2rem; }
  .header-inner { height: 60px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--dark-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); }
  .mobile-toggle { display: block; }
  .posts-grid { grid-template-columns: 1fr; gap: 20px; }
  .featured-grid { grid-template-columns: 1fr; gap: 20px; }
  .featured-card { height: 280px; }
  .post-single h1 { font-size: 1.7rem; }
  .post-single { padding: 32px 20px; }
  .post-single-nav { flex-direction: column; }
  .post-single-nav a { max-width: 100%; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .posts-table { font-size: 0.8rem; }
  .posts-table th, .posts-table td { padding: 10px 14px; }
}

@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
  .featured-card { height: 240px; }
  .featured-overlay h3 { font-size: 1.1rem; }
}
