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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111;
  line-height: 1.6;
}

/* =========================
   HEADER
========================= */
header {
  padding: 30px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 18px;
  letter-spacing: 3px;
  font-weight: 600;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #444;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav a:hover {
  color: #000;
}

.active {
  color: #000;
  font-weight: 600;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  padding: 180px 10%;
  color: #fff;
  background-image: url("images/hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 54px;
  font-weight: 300;
  max-width: 800px;
  margin-bottom: 20px;
}

.hero p {
  max-width: 600px;
  font-size: 18px;
  color: #eaeaea;
}

.hero .btn {
  align-self: flex-start;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 26px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.btn:hover {
  background: #fff;
  color: #111;
}

.btn-dark {
  border-color: #111;
  color: #111;
}

.btn-dark:hover {
  background: #111;
  color: #fff;
}

.btn-small {
  padding: 8px 18px;
  font-size: 12px;
  margin-top: 15px;
}

/* =========================
   SECTIONS
========================= */
section {
  padding: 100px 10%;
  border-top: 1px solid #eee;
}

.section-title {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

/* =========================
   RUBRIC CARDS
========================= */
.rubrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.rubric-card {
  position: relative;
  height: 320px;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  background-size: cover;
  background-position: center;
  background-color: #333;
  transition: transform 0.3s ease;
}

.rubric-card:hover {
  transform: translateY(-4px);
}

.rubric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}

.rubric-card span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* =========================
   GRID (ARTICLES)
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card {
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s ease;
}

.card:hover {
  opacity: 0.85;
}

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

.card .card-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 400;
}

.card p {
  font-size: 14px;
  color: #666;
}

/* =========================
   VIDEO EMBED
========================= */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

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

/* =========================
   PAGE HEADER (inner pages)
========================= */
.page-header {
  padding: 80px 10% 60px;
  background: #f9f9f9;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 10px;
}

.page-header p {
  color: #666;
  max-width: 600px;
  font-size: 16px;
}

/* =========================
   BREADCRUMBS
========================= */
.breadcrumbs {
  padding: 20px 10%;
  font-size: 13px;
  color: #999;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.breadcrumbs a {
  color: #666;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #000;
}

.breadcrumbs span {
  color: #111;
}

/* =========================
   CATEGORY FILTER (blog page)
========================= */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  color: #555;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* =========================
   ARTICLE PAGE
========================= */
.article-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.article-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 10% 100px;
}

.article-content .card-tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 10px;
}

.article-content h1 {
  font-size: 38px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 40px;
}

.article-meta span {
  margin-right: 20px;
}

.article-body {
  max-width: 720px;
  font-size: 17px;
  color: #333;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body iframe {
  width: 100%;
  height: 450px;
  border: none;
  margin: 40px 0;
}

.article-body img {
  width: 100%;
  margin: 40px 0;
}

/* =========================
   ABOUT PAGE
========================= */
.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-social {
  margin-top: 30px;
}

.about-social a {
  display: inline-block;
  margin-right: 15px;
  padding: 10px 24px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #555;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s ease;
}

.about-social a:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* =========================
   DONATE PAGE
========================= */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.donate-card {
  padding: 40px 30px;
  border: 1px solid #eee;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: 0.3s ease;
}

.donate-card:hover {
  border-color: #111;
  background: #fafafa;
}

.donate-card .donate-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.donate-card h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}

.donate-card p {
  font-size: 13px;
  color: #666;
}

/* =========================
   PAGINATION
========================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.pagination a {
  padding: 10px 16px;
  border: 1px solid #eee;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* =========================
   SHOP / PRODUCTS
========================= */
.shop-grid-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card-mini {
  display: block;
  border: 1px solid #eee;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.product-card-mini:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.product-card-mini img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}

.prod-mini-info {
  padding: 12px;
}

.prod-mini-info h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
}

.prod-mini-price {
  font-size: 12px;
  color: #888;
}

.preorder-card {
  position: relative;
  cursor: default;
}

.preorder-badge-lg {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #1967d2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 1;
  letter-spacing: 0.3px;
}

.preorder-tg-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: #1a93e8;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  border-radius: 3px;
  transition: background 0.15s;
}

.preorder-tg-btn:hover {
  background: #1679c1;
  color: #fff;
}

/* =========================
   SUPPORT SECTION
========================= */
.support {
  background: #f7f7f7;
  text-align: center;
}

.support p {
  max-width: 600px;
  margin: 0 auto 20px;
  color: #555;
}

.support-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* =========================
   FOOTER
========================= */
footer {
  padding: 60px 10% 40px;
  border-top: 1px solid #eee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #000;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 30px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* =========================
   ADMIN
========================= */
.admin-body {
  background: #f5f5f5;
}

.admin-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 5%;
}

/* ========================
   ADMIN SIDEBAR LAYOUT
======================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  min-width: 240px;
  background: #fff;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-logo {
  padding: 24px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: 1px solid #eee;
  color: #111;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: 0.2s ease;
}

.sidebar-nav a:hover {
  background: #f9f9f9;
  color: #111;
}

.sidebar-nav a.active {
  background: #f5f5f5;
  color: #111;
  font-weight: 600;
  border-left-color: #111;
}

.sidebar-footer {
  padding: 12px 0;
  border-top: 1px solid #eee;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: 0.2s ease;
}

.sidebar-footer a:hover {
  color: #111;
  background: #f9f9f9;
}

/* ========================
   ADMIN MAIN CONTENT
======================== */
.admin-main {
  flex: 1;
  padding: 40px 5%;
  max-width: calc(100% - 240px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 28px;
  font-weight: 300;
}

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

.admin-content {
  /* wrapper for page-specific content */
}

/* ========================
   STATS GRID (dashboard)
======================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: #fff;
  padding: 24px;
  border: 1px solid #eee;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 300;
  color: #111;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.top-posts {
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 32px;
}

.top-posts h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  color: #555;
}

.top-posts-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
}

.top-posts-item:last-child {
  border-bottom: none;
}

.top-posts-item .tp-title {
  color: #333;
  flex: 1;
  margin-right: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-posts-item .tp-views {
  color: #999;
  font-size: 12px;
  white-space: nowrap;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.admin-table th {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

.admin-table tr:hover {
  background: #fafafa;
}

.admin-actions a,
.admin-actions button {
  margin-right: 10px;
  padding: 6px 14px;
  font-size: 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: #555;
  transition: 0.3s ease;
}

.admin-actions a:hover,
.admin-actions button:hover {
  border-color: #111;
  color: #111;
}

.admin-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.admin-btn:hover {
  background: #333;
}

.admin-form {
  max-width: 700px;
  background: #fff;
  padding: 40px;
}

.admin-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 24px;
  background: #fff;
}

.admin-form textarea {
  min-height: 300px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: #111;
}

.admin-login {
  max-width: 400px;
  margin: 100px auto;
  background: #fff;
  padding: 40px;
}

.admin-login h1 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 30px;
  text-align: center;
}

.admin-login .error {
  color: #c00;
  font-size: 13px;
  margin-bottom: 15px;
  text-align: center;
}

/* =========================
   GALLERY
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.gallery-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}
.gallery-thumb:hover {
  opacity: 0.85;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  z-index: 2001;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  padding: 0 20px;
  user-select: none;
  z-index: 2001;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #999;
  font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .rubrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .donate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    padding: 120px 8%;
  }

  .hero h1 {
    font-size: 34px;
  }

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

  section {
    padding: 60px 8%;
  }

  .rubrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rubric-card {
    height: 240px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    height: 300px;
  }

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

  .article-content {
    padding: 40px 8% 80px;
  }

  .article-content h1 {
    font-size: 28px;
  }

  .article-body iframe {
    height: 250px;
  }

  .article-hero {
    height: 250px;
  }

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

  .page-header {
    padding: 60px 8% 40px;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .admin-form {
    padding: 20px;
  }

  .admin-table {
    font-size: 13px;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 500px) {
  .rubrics-grid {
    grid-template-columns: 1fr;
  }
}
