/* Magazine Style Theme - style7.css */
:root {
  --primary-color: #d32f2f;
  --secondary-color: #333;
  --accent-color: #ffc107;
  --text-color: #333;
  --text-light: #666;
  --background-main: #fff;
  --background-light: #f9f9f9;
  --background-dark: #212121;
  --border-color: #e0e0e0;
  --box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --container-width: 1280px;
  --header-height: 70px;
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-light);
}

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

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

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

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1.5em;
}

/* Header Styles */
.site-header {
  background-color: var(--background-main);
  box-shadow: var(--box-shadow);
  position: relative;
  z-index: 100;
}

.header-topbar {
  background-color: var(--background-dark);
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info {
  display: flex;
}

.topbar-info span {
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.topbar-info i {
  margin-right: 5px;
}

.topbar-social a {
  color: white;
  margin-left: 15px;
  font-size: 0.9rem;
}

.topbar-social a:hover {
  color: var(--accent-color);
}

.header-main {
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: -1px;
  margin-bottom: 5px;
}

.site-tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
}

.header-ad {
  max-width: 728px;
  height: 90px;
  background-color: var(--background-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-navigation {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.main-nav .nav-item {
  position: relative;
}

.main-nav .nav-link {
  display: block;
  padding: 15px 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.main-nav .nav-link:hover {
  background-color: var(--background-light);
}

.header-search-form {
  display: flex;
  max-width: 300px;
}

.header-search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-right: none;
  outline: none;
  background-color: var(--background-light);
}

.header-search-button {
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-size: 0.9rem;
}

/* Main Content */
.main-content {
  padding: 40px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Featured Slider */
.featured-slider {
  margin-bottom: 40px;
  position: relative;
}

.featured-slide {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

.slide-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.slide-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.slide-title a {
  color: white;
}

.slide-title a:hover {
  color: var(--accent-color);
}

.slide-meta {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.slide-author {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.slide-author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.slide-date {
  display: flex;
  align-items: center;
}

.slide-date i {
  margin-right: 5px;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
}

.slider-button {
  width: 40px;
  height: 40px;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 1.2rem;
  margin-left: 10px;
  transition: var(--transition);
}

.slider-button:hover {
  background-color: var(--primary-color);
}

/* Post Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.post-card {
  position: relative;
  background-color: var(--background-main);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.post-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.post-content {
  padding: 20px;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.post-meta {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.post-author {
  margin-right: 15px;
}

.post-author i, .post-date i {
  margin-right: 5px;
}

.post-excerpt {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.read-more {
  display: inline-block;
  font-weight: 700;
  font-style: italic;
  position: relative;
}

.read-more:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.read-more:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Post List */
.post-list-item {
  display: flex;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}

.post-list-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.post-list-thumb {
  flex: 0 0 200px;
  margin-right: 20px;
}

.post-list-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.post-list-content {
  flex: 1;
}

.post-list-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.post-list-meta {
  display: flex;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.post-list-excerpt {
  font-size: 0.9rem;
}

/* Sidebar */
.sidebar .widget {
  background-color: var(--background-main);
  border: 1px solid var(--border-color);
  padding: 25px;
  margin-bottom: 30px;
}

.widget-title {
  font-size: 1.2rem;
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 10px;
}

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

.about-widget {
  text-align: center;
}

.about-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.about-widget p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--background-light);
  border-radius: 50%;
  margin: 0 5px;
  transition: var(--transition);
}

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

.popular-widget .popular-post {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.popular-widget .popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post-thumb {
  flex: 0 0 80px;
  margin-right: 15px;
}

.popular-post-thumb img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.popular-post-content {
  flex: 1;
}

.popular-post-title {
  font-size: 0.95rem;
  margin-bottom: 5px;
  line-height: 1.3;
}

.popular-post-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

.categories-widget .category-list {
  list-style: none;
}

.categories-widget .category-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.categories-widget .category-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.categories-widget .category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.categories-widget .category-count {
  background-color: var(--background-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.newsletter-widget p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
}

.newsletter-input {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
  outline: none;
}

.newsletter-button {
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.newsletter-button:hover {
  background-color: var(--secondary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-numbers {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 5px;
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.9rem;
}

.page-numbers.current {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-numbers.dots {
  border: none;
}

.page-numbers.next, .page-numbers.prev {
  padding: 8px 20px;
}

/* Article Styles */
.single-post .post-header {
  margin-bottom: 30px;
}

.post-header .post-category {
  position: static;
  display: inline-block;
  margin-bottom: 15px;
}

.post-header .post-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.post-header .post-meta {
  margin-bottom: 0;
}

.post-featured-image {
  margin-bottom: 30px;
}

.post-featured-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.post-body p, .post-body ul, .post-body ol {
  margin-bottom: 1.5rem;
}

.post-body h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.post-body h3 {
  font-size: 1.5rem;
  margin: 1.8rem 0 1rem;
}

.post-body img {
  margin: 1.5rem 0;
}

.post-body blockquote {
  border-left: 3px solid var(--primary-color);
  padding-left: 20px;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--text-light);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.post-tag {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--background-light);
  margin: 0 10px 10px 0;
  font-size: 0.85rem;
  border-radius: 2px;
}

.post-tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-share {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.share-label {
  font-weight: 700;
  margin-right: 15px;
}

.share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--background-light);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.share-links a:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.post-navigation a {
  display: block;
  width: 48%;
  padding: 20px;
  background-color: var(--background-light);
  position: relative;
}

.post-navigation a:hover {
  background-color: var(--border-color);
}

.prev-post {
  padding-left: 50px;
}

.next-post {
  padding-right: 50px;
  text-align: right;
}

.post-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.prev-post .post-nav-arrow {
  left: 20px;
}

.next-post .post-nav-arrow {
  right: 20px;
}

.post-nav-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--text-light);
}

.post-nav-title {
  font-weight: 700;
  font-size: 1rem;
}

.related-posts, .you-missed {
  margin-bottom: 40px;
}

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.section-heading:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background-color: var(--primary-color);
}

.related-grid, .missed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Footer */
.site-footer {
  background-color: var(--background-dark);
  color: white;
  padding-top: 60px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-widget {
  margin-bottom: 30px;
}

.footer-widget-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

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

.footer-about p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.footer-social a {
  color: white;
  margin-right: 15px;
  font-size: 1.2rem;
}

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

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: padding 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 10px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .slide-title {
    font-size: 2rem;
  }
  
  .footer-widgets {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-widget:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .header-ad {
    display: none;
  }
  
  .site-branding {
    margin: 0 auto;
  }
  
  .featured-slide {
    height: 400px;
  }
  
  .slide-overlay {
    padding: 30px;
  }
  
  .post-grid, .related-grid, .missed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-widget:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .topbar-info {
    display: none;
  }
  
  .topbar-content {
    justify-content: center;
  }
  
  .featured-slide {
    height: 350px;
  }
  
  .slide-title {
    font-size: 1.5rem;
  }
  
  .post-navigation {
    flex-direction: column;
  }
  
  .post-navigation a {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .footer-widgets {
    grid-template-columns: 1fr;
  }
  
  .footer-widget:last-child {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  .post-grid, .related-grid, .missed-grid {
    grid-template-columns: 1fr;
  }
  
  .post-list-item {
    flex-direction: column;
  }
  
  .post-list-thumb {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .post-header .post-title {
    font-size: 1.8rem;
  }
}

/* JS-related styles */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background-main);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sticky-header.active {
  transform: translateY(0);
}

.sticky-header .header-content {
  padding: 10px 0;
}

.sticky-header .site-logo {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.sticky-header .site-tagline {
  display: none;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-main);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav .nav-list {
    flex-direction: column;
  }
  
  .main-nav .nav-link {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-container {
    position: relative;
  }
  
  .header-search-form {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: var(--background-main);
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: none;
    z-index: 100;
  }
  
  .header-search-form.active {
    display: flex;
  }
} 