/*
Theme Name: Newsing Lite Sidebar v2
Theme URI: https://support.newsing.gr
Author: Sakis xrs 
Description: Theme with sidebar visible in search, archive, and single pages. Sidebar fixed width.
Version: 0.7.0
Text Domain: newsing-lite-sidebar-v2
*/

/* Βασικά */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #fff;
  color: #111;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* Searchbar */
.searchbar {
  margin: 3rem auto 2rem;
  display: flex;
  justify-content: center;
  max-width: 600px;
}
.searchbar input[type="search"] {
  flex: 1;
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 30px 0 0 30px;
  outline: none;
  transition: border-color 0.2s ease;
}
.searchbar input[type="search"]:focus {
  border-color: #c90000;
}
.searchbar button {
  padding: 0 1.2rem;
  
  border-left: none;
  background: #c90000;
  color: #fff;
  font-size: 1.1rem;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.searchbar button::before {
  content: "🔍";
  font-size: 1.2rem;
  line-height: 1;
}
.searchbar button:hover {
  background: #a50000;
}

/* Menus */
.categories-menu ul,
footer ul,
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.categories-menu li,
footer li,
.menu li {
  margin: 0 12px;
}
.categories-menu a,
footer a,
.menu a {
  text-decoration: none;
  color: #111;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 4px;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}
.menu a:hover,
.menu .current-menu-item a {
  color: #c90000;
  border-bottom: 2px solid #c90000;
}



/* Footer */
footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
}

/* Logo */
#newsing-logo {
  display: inline-block;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  position: relative;
  color: #c90000;
  text-shadow:
    0 2px 0 #400000,
    0 4px 8px rgba(0,0,0,0.5);
  transition: transform .15s ease, text-shadow .15s ease;
}
#newsing-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.7) 0%,
    rgba(255,255,255,0.25) 40%,
    rgba(255,255,255,0) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
}
#newsing-logo:hover {
  transform: translateY(-2px);
  text-shadow:
    0 3px 0 #400000,
    0 6px 12px rgba(0,0,0,0.6);
}
@media (max-width: 480px) {
  #newsing-logo {
    font-size: 40px;
  }
}

/* Header */
.site-header {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header .logo a {
  font-size: 28px;
  font-weight: bold;
  color: #c90000;
  text-decoration: none;
}

/* Layout με sidebar */
.content-with-sidebar {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.sidebar {
  flex-basis: 300px;
  min-width: 300px;
}
.sidebar .widget {
  margin-bottom: 20px;
}
.widget-title {
  margin-bottom: 10px;
  font-size: 1.1rem;
  border-bottom: 2px solid #e11d48;
  display: inline-block;
  padding-bottom: 4px;
}

/* Results & archive list */
.results-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}
.result-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.result-thumb img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}
.result-info h2 {
  margin: 0 0 5px;
  font-size: 1.1rem;
  font-weight: 600;
}
.result-info p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

/* Το άρθρο */
.single-article {
  margin-top: 20px;
}

/* Δημοφιλή Σήμερα */
.newsing-popular-today .popular-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.newsing-popular-today .popular-item img {
  flex-shrink: 0;
  border-radius: 4px;
}
.newsing-popular-today .popular-item a {
  font-size: 0.9rem;
  line-height: 1.3;
  color: #111;
  text-decoration: none;
}
.newsing-popular-today .popular-item a:hover {
  color: #c90000;
}
.popular-today {
  margin-top: 3rem;
}
.popular-today h2 {
  font-size: 1.2rem;
  border-bottom: 2px solid #c90000;
  display: inline-block;
  margin-bottom: 1rem;
}
.popular-today .popular-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.popular-today img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}
.popular-today a {
  font-size: 0.9rem;
  line-height: 1.3;
  color: #111;
  text-decoration: none;
}
.popular-today a:hover {
  color: #c90000;
}

/* Responsive */
@media (max-width: 768px) {
  .content-with-sidebar {
    flex-direction: column;
  }
  .sidebar {
    flex-basis: auto;
    min-width: 0;
  }
  .result-item {
    flex-direction: column;
  }
  .result-thumb img {
    width: 100%;
    height: auto;
  }
}