/* Main Styles for BG Nesebar News Portal */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+Pro:wght@400;600;700&display=swap');

:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --accent-color: #ffc107;
  --danger-color: #dc3545;
  --success-color: #28a745;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --body-bg: #f5f7f9;
  --card-bg: #ffffff;
  --header-height: 80px;
  --navbar-height: 50px;
  --footer-bg: #1a1a2e;
  --border-radius: 0.375rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--body-bg);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

.article-content {
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #004494;
}

/* Header */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header-top {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-logo {
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.site-logo a {
  color: inherit;
}

.site-logo a:hover {
  text-decoration: none;
}

.search-form .form-control {
  border-radius: 50px 0 0 50px;
  border-right: none;
}

.search-form .btn {
  border-radius: 0 50px 50px 0;
  padding-left: 15px;
  padding-right: 15px;
}

/* Navigation */
.navbar {
  padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  padding: 1rem 1.25rem;
  transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .active > .nav-link {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Cards & Boxes */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  font-weight: 600;
}

/* Breaking News Bar */
.breaking-news-container {
  background-color: var(--danger-color);
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
}

.breaking-news-label {
  background: #b71c1c;
  padding: 0.25rem 1rem;
  font-weight: 700;
  border-radius: 3px;
  margin-right: 15px;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.breaking-news-ticker {
  position: relative;
  overflow: hidden;
  height: 2rem;
}

.breaking-news-items {
  position: absolute;
  top: 0;
  animation: ticker 30s linear infinite;
  width: max-content;
}

.breaking-news-item {
  display: inline-block;
  margin-right: 50px;
  white-space: nowrap;
}

.breaking-news-item a {
  color: white;
  text-decoration: none;
}

.breaking-news-item a:hover {
  text-decoration: underline;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Featured Story Section */
.featured-story {
  position: relative;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 400px;
}

.featured-story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-story-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: white;
}

.featured-story-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.featured-story-meta {
  opacity: 0.8;
  font-size: 0.875rem;
}

/* Sidebar */
.sidebar-widget {
  margin-bottom: 2rem;
}

.sidebar-widget-title {
  position: relative;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  font-size: 1.25rem;
}

.sidebar-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Weather Widget */
.weather-widget {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: var(--box-shadow);
}

.weather-city {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.weather-info {
  display: flex;
  align-items: center;
}

.weather-temp {
  font-size: 1.5rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.weather-icon {
  font-size: 2rem;
}

/* Currency Widget */
.currency-widget table {
  width: 100%;
}

.currency-widget th,
.currency-widget td {
  padding: 0.5rem;
  text-align: right;
}

.currency-widget th:first-child,
.currency-widget td:first-child {
  text-align: left;
}

.currency-up {
  color: var(--success-color);
}

.currency-down {
  color: var(--danger-color);
}

/* Horoscope Widget */
.horoscope-signs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.horoscope-sign {
  text-align: center;
}

.horoscope-sign-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 5px;
}

.horoscope-sign-name {
  font-size: 0.75rem;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: white;
  text-decoration: none;
}

.footer ul {
  padding-left: 0;
  list-style-type: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ad Spaces */
.ad-container {
  background-color: #f0f0f0;
  border-radius: var(--border-radius);
  padding: 0.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.ad-container img {
  max-width: 100%;
  height: auto;
}

.ad-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #999;
  display: block;
  margin-bottom: 0.25rem;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
  justify-content: center;
}

.page-link {
  color: var(--primary-color);
  border-color: #dee2e6;
  padding: 0.5rem 1rem;
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Article Page */
.blog-post {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.blog-post-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.blog-post-meta {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.blog-post-meta a {
  color: inherit;
}

.blog-post-meta a:hover {
  color: var(--primary-color);
}

.blog-post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.share-buttons {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
}

.related-posts-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Category Page */
.category-header {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .featured-story {
    height: 300px;
  }
  
  .featured-story-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .site-logo {
    font-size: 1.5rem;
  }
  
  .featured-story {
    height: 250px;
  }
  
  .featured-story-content {
    padding: 1.5rem;
  }
  
  .featured-story-title {
    font-size: 1.25rem;
  }
  
  .blog-post {
    padding: 1.5rem;
  }
  
  .blog-post-title {
    font-size: 1.75rem;
  }
}

/* Utility Classes */
.badge {
  padding: 0.35em 0.65em;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--primary-color);
}

.badge-breaking {
  background-color: var(--danger-color);
}

.badge-featured {
  background-color: var(--accent-color);
  color: #000;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-muted {
  color: var(--secondary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-dark {
  background-color: var(--dark-color) !important;
}

.rounded {
  border-radius: var(--border-radius) !important;
}

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }