/* Amindi.info Weather Portal - DLE Template Styles */

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

body {
  font-family: "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* Header Styles */
header {
  background-color: #1e3a5f;
  color: #fff;
  padding: 1rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Navigation Styles */
nav {
  background-color: #1e3a5f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul li a {
  display: block;
  padding: 1rem 0;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

nav ul li a:hover {
  opacity: 0.8;
}

/* Search/Filter Section */
.search-section {
  background-color: #fff;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.search-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.filter-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-select {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: "Noto Sans Georgian", sans-serif;
  background-color: #fff;
  cursor: pointer;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: "Noto Sans Georgian", sans-serif;
}

.search-button {
  padding: 0.75rem 1.5rem;
  background-color: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #2d4a6f;
}

/* Banner Ad */
.banner-ad {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.banner-ad img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

/* Main Container */
.main-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Current Weather Widget */
.current-weather-widget {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.current-weather-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.current-weather-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.current-temp-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.current-weather-icon {
  font-size: 4rem;
}

.current-temp-large {
  font-size: 3.5rem;
  font-weight: 300;
  color: #333;
}

.current-condition {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.weather-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.weather-detail-item {
  display: flex;
  justify-content: space-between;
  color: #666;
}

.weather-detail-label {
  font-weight: 500;
}

/* Hourly Forecast Widget */
.hourly-forecast-widget {
  background: linear-gradient(180deg, #2c4a6f 0%, #1e3a5f 100%);
  border-radius: 12px;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hourly-forecast-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hourly-forecast-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 500px;
  overflow-y: auto;
}

.hourly-forecast-list::-webkit-scrollbar {
  width: 6px;
}

.hourly-forecast-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.hourly-forecast-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.hourly-forecast-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hourly-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.hourly-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.hourly-time {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

.hourly-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.hourly-icon {
  font-size: 1.8rem;
  text-align: center;
}

.hourly-temp {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
  min-width: 50px;
}

/* Main Content Area */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Page Title */
.page-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

/* Forecast Section */
.forecast-section {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.forecast-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.forecast-card {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

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

.forecast-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.75rem;
}

.forecast-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1;
}

.forecast-month {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.forecast-weekday {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.25rem;
}

.forecast-icon {
  font-size: 3rem;
  margin: 1rem 0;
  line-height: 1;
}

.forecast-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forecast-temp {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.temp-max {
  color: #e74c3c;
}

.temp-min {
  color: #3498db;
}

/* News Section */
.news-section {
  margin-top: 2rem;
}

.news-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Added styles for news items grid layout */
.news-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-item {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.news-image {
  width: 100%;
  overflow: hidden;
}

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

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-label {
  display: inline-block;
  background-color: #ffd700;
  color: #333;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.news-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: #1e3a5f;
}

.news-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.news-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.read-more {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #2d4a6f;
}

/* Added fullstory container styles */
.fullstory-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.full-article {
  background-color: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
  flex-wrap: wrap;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 2rem;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1e3a5f;
}

.article-tags {
  padding: 1.5rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.article-tags a {
  display: inline-block;
  background-color: #f5f7fa;
  color: #1e3a5f;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.article-tags a:hover {
  background-color: #e0e5ea;
}

.article-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background-color: #1e3a5f;
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

/* Added loading and error state styles */
.weather-loading {
  text-align: center;
  padding: 1rem;
  color: #666;
}

.loading-spinner {
  font-size: 2rem;
  animation: spin 2s linear infinite;
  margin-bottom: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.weather-error {
  text-align: center;
  padding: 1rem;
  color: #e74c3c;
  font-size: 0.9rem;
}

/* Added weather icon animation classes */
.weather-icon {
  display: inline-block;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.weather-icon.sunny {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .forecast-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

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

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

@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .filter-row {
    flex-direction: column;
  }

  .forecast-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

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

  .fullstory-container {
    padding: 0 1rem;
  }

  .full-article {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.5rem;
  }
}
