/* Modern Style CSS - Matching Vue Project Design */

/* Header Section */
.header-section {
  padding: 30px 0;
  background: white;
  border-bottom: 1px solid #eee;
}

.logo {
  max-width: 200px;
  height: auto;
}

.search-form {
  max-width: 500px;
  margin: 0 auto;
}

.search-wrapper {
  position: relative;
  display: flex;
}

.search-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #f3c046;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: #f3c046;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #e6a832;
}

/* Main Content */
.main-content {
  padding: 60px 0;
  background: #f8f9fa;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.section-line {
  width: 60px;
  height: 3px;
  background: #f3c046;
  border-radius: 2px;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f3c046;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2c3e50;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 2rem;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trending-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-link {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.trending-image {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.trending-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trending-content {
  flex: 1;
}

.trending-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.trending-category {
  color: #f3c046;
  font-weight: 500;
}

.trending-date {
  color: #6c757d;
}

.trending-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #2c3e50;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Regional Section */
.regional-section {
  padding: 60px 0;
  background: white;
}

.regional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.regional-card {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.regional-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.regional-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.regional-image {
  width: 100px;
  height: 80px;
  flex-shrink: 0;
}

.regional-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.regional-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.regional-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.regional-category {
  color: #f3c046;
  font-weight: 500;
}

.regional-date {
  color: #6c757d;
}

.regional-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #2c3e50;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

/* View More Button */
.view-more-btn {
  display: inline-block;
  background: #f3c046;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: #e6a832;
  transform: translateY(-2px);
  color: white;
}

/* Mobile Header Styles */
.mobile-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-header-top {
  border-bottom: 1px solid #eee;
}

.mobile-logo img {
  height: 40px;
}

.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #333;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn:hover {
  color: #dc3545;
}

.mobile-nav {
  background: #fff;
  border-top: 1px solid #eee;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav.show {
  max-height: 500px;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-item {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.mobile-menu-item:hover {
  background: #f8f9fa;
  color: #dc3545;
  text-decoration: none;
}

.mobile-menu-item i {
  float: right;
  transition: transform 0.3s ease;
}

.mobile-menu-item i.rotate {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8f9fa;
}

.mobile-submenu.show {
  max-height: 300px;
}

.mobile-submenu-item {
  display: block;
  padding: 12px 40px;
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.mobile-submenu-item:hover {
  background: #e9ecef;
  color: #dc3545;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .header-section {
    padding: 20px 0;
  }
  
  .logo {
    max-width: 150px;
  }
  
  .main-content,
  .regional-section {
    padding: 40px 0;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .regional-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    margin-top: 2rem;
    position: static;
  }
}

/* Utility Classes */
.inline-hover a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.inline-hover a:hover {
  color: #dc3545;
}

.title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}