/* ================================
   🎯 THEOS BLOG SYSTEM
================================ */

/* Hero Article Styling */
.hero-article {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  margin-bottom: 3rem;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.hero-article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.hero-article-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.hero-article-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-article-content {
    padding: 1.5rem;
  }
}

/* Article Card */
.article-card {
  background-color: var(--bg-white);
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.05);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.1);
}

.article-card-img-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.article-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-card-img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.article-title {
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1rem;
}

/* Sidebar & Chips */
.chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border-radius: 20px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.chip:hover, .chip.active {
  background: var(--primary-light);
  color: white;
}

.category-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.category-list-item:hover, .category-list-item.active {
  color: var(--primary-light);
  padding-left: 0.5rem;
}

.category-list-item:last-child {
  border-bottom: none;
}

/* Search Bar */
.search-wrapper {
  position: relative;
}
.search-wrapper .form-control {
  background-color: var(--bg-white);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  padding-left: 2.5rem;
  border-radius: 2rem;
}
.search-wrapper .form-control:focus {
  background-color: var(--bg-white);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.25);
  color: var(--text-light);
}
.search-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Article Detail Page */
.article-header {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.article-header-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--bg-deep) 0%, rgba(5,5,5,0.6) 100%);
}

.article-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  margin-top: -100px;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
  background: var(--bg-deep);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
  .article-body {
    padding: 1.5rem;
    font-size: 1.05rem;
  }
}

.article-body h2, .article-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body .lead {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-dim);
  border-left: 4px solid var(--primary-light);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.article-body ul {
  margin-bottom: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Share Buttons */
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
  transition: var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-3px);
}

/* Empty State */
.empty-state {
  padding: 5rem 2rem;
  text-align: center;
  background: rgba(255,255,255,0.02);
  border-radius: 1rem;
  border: 1px dashed rgba(255,255,255,0.1);
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-white) 25%, rgba(255,255,255,0.05) 50%, var(--bg-white) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
