/* TheNewsBox.com - Modern Tech News Website Styles */

:root {
  --primary-color: #2563eb;
  --secondary-color: #10b981;
  --background-color: #f8fafc;
  --card-bg-color: #ffffff;
  --text-color: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background-color: var(--card-bg-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo span {
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-weight: 500;
}

/* Dropdown Menu Styles */
nav li {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-bg-color);
  box-shadow: var(--shadow-lg);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1000;
  margin-top: 0.5rem;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--background-color);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(120deg, #2563eb 0%, #10b981 100%);
  color: white;
  margin-bottom: 3rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  max-width: 42rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
}

/* Article Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.article-card {
  background-color: var(--card-bg-color);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-tag {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-excerpt {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

.article-meta img {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  margin-right: 0.75rem;
}

/* Featured Article */
.featured-article {
  background-color: var(--card-bg-color);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.featured-article-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.featured-article-image {
  height: 100%;
  object-fit: cover;
}

.featured-article-content {
  padding: 2.5rem;
}

.featured-tag {
  display: inline-block;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary-color);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.featured-article-title {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-article-excerpt {
  margin-bottom: 1.5rem;
}

/* Full Article Page */
.article-header {
  padding: 3rem 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-header .meta {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.article-header .tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.article-content-full {
  max-width: 800px;
  margin: 0 auto 4rem;
  background-color: var(--card-bg-color);
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
}

.article-content-full p {
  margin-bottom: 1.5rem;
}

.article-content-full h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.article-content-full h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.article-content-full ul, 
.article-content-full ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content-full li {
  margin-bottom: 0.5rem;
}

.article-content-full img {
  border-radius: 0.375rem;
  margin: 2rem 0;
}

.article-content-full blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-light);
}

/* Footer */
footer {
  background-color: var(--card-bg-color);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .featured-article-inner {
    grid-template-columns: 1fr;
  }
  
  .featured-article-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  nav ul {
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
}
