/* Greek News Website - Pure CSS */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #fafafa;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --primary: #8b2635;
  --primary-foreground: #fafafa;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}

.header-top-left {
  display: flex;
  gap: 1rem;
}

.header-top-right {
  display: flex;
  gap: 1rem;
}

.header-top a:hover {
  color: var(--primary);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.logo span {
  color: var(--primary);
}

.search-box {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .search-box {
    display: flex;
  }
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.875rem;
  width: 200px;
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.nav-main {
  display: none;
  background: var(--muted);
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .nav-main {
    display: block;
  }
}

.nav-main.active {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-list {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }
}

.nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: background-color 0.2s, color 0.2s;
}

.nav-list a:hover {
  background: var(--border);
  color: var(--primary);
}

.nav-list a.active {
  color: var(--primary);
}

/* Breaking News Ticker */
.breaking-news {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 0;
  overflow: hidden;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breaking-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.2);
}

.ticker-wrapper {
  flex: 1;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.ticker-content span {
  font-size: 0.875rem;
}

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

/* Hero Section */
.hero-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.hero-featured {
  position: relative;
}

.hero-featured-image {
  aspect-ratio: 16/9;
  background: var(--muted);
  overflow: hidden;
}

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

.hero-featured-content {
  padding: 1.5rem 0;
}

.category-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.hero-featured h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero-featured h1 {
    font-size: 2.25rem;
  }
}

.hero-featured p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-sidebar-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.hero-sidebar-item:last-child {
  border-bottom: none;
}

.hero-sidebar-image {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 4/3;
  background: var(--muted);
  overflow: hidden;
}

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

.hero-sidebar-content h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hero-sidebar-content h3:hover {
  color: var(--primary);
}

/* News Section */
.news-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.section-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.section-link {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

.section-link:hover {
  text-decoration: underline;
}

.news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

@media (min-width: 1024px) {
  .news-grid.with-featured {
    grid-template-columns: 1fr 1fr;
  }
}

/* Article Card */
.article-card {
  display: flex;
  flex-direction: column;
}

.article-card-image {
  aspect-ratio: 16/10;
  background: var(--muted);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

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

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

.article-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.article-card:hover h3 {
  color: var(--primary);
}

.article-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-featured {
  grid-column: 1;
}

@media (min-width: 1024px) {
  .article-card-featured .article-card-image {
    aspect-ratio: 4/3;
  }
  
  .article-card-featured h3 {
    font-size: 1.5rem;
  }
}

.article-card-horizontal {
  flex-direction: row;
  gap: 1rem;
}

.article-card-horizontal .article-card-image {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  margin-bottom: 0;
}

.article-card-horizontal h3 {
  font-size: 0.9375rem;
}

/* Main Content Layout */
.main-content {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
}

@media (min-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr 320px;
  }
}

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

.sidebar-section {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.sidebar-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.live-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-news-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

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

.live-time {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.live-news-item p {
  font-size: 0.875rem;
  line-height: 1.4;
}

.live-news-item p:hover {
  color: var(--primary);
}

.popular-list {
  counter-reset: popular;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.popular-item {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  counter-increment: popular;
}

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

.popular-item::before {
  content: counter(popular);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
}

.popular-item p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.popular-item p:hover {
  color: var(--primary);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form button {
  padding: 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: opacity 0.2s;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--foreground);
  color: var(--background);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-brand .logo {
  color: var(--background);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  transition: background-color 0.2s;
}

.social-links a:hover {
  background: var(--primary);
}

.footer-section h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.footer-legal a:hover {
  color: var(--background);
}

/* Article Page */
.article-page {
  padding: 2rem 0;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span {
  color: var(--muted-foreground);
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .article-header h1 {
    font-size: 2.5rem;
  }
}

.article-lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--muted);
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-details {
  flex: 1;
}

.author-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.author-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.article-featured-image {
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.article-featured-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-featured-image figcaption {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.article-layout {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 60px 1fr 200px;
  }
}

.share-buttons {
  display: none;
}

@media (min-width: 1024px) {
  .share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 100px;
  }
}

.share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.article-body {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.8;
}

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

.article-body h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.tag:hover {
  background: var(--border);
}

.article-aside {
  display: none;
}

@media (min-width: 1024px) {
  .article-aside {
    display: block;
    font-size: 0.875rem;
  }
}

.article-aside h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.article-aside ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-aside a {
  line-height: 1.4;
}

.article-aside a:hover {
  color: var(--primary);
}

/* Related Articles */
.related-articles {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.related-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Archive Page */
.archive-header {
  background: var(--muted);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.archive-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.archive-header p {
  color: var(--muted-foreground);
}

.archive-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .archive-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  background: var(--card);
  cursor: pointer;
}

.archive-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--muted);
}

.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Category Nav Sidebar */
.category-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-nav a {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.category-nav a:hover {
  color: var(--primary);
}

.category-nav .count {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none; }

@media (min-width: 768px) {
  .md-block { display: block; }
}
