/*
Theme Name: Desireline Magazine
Theme URI: https://desireline.com
Author: Tahseen Ashrafi
Author URI: https://tahseenashrafi.com
Description: A modern magazine theme for lifestyle and relationships content
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desireline
Tags: magazine, blog, lifestyle, responsive
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2b2e35;
  --background-color: #f7fafc;
  --font-color: #4a5568;
  --font-color-dark: #2d3748;
  --hover-color: #edf2f7;
  --background-dark: #e2e8f0;
  --inactive-font: #a0aec0;
  --button-hover: #4f525b;
  --neutral-bg: #edf2f7;
  --line-color: #e2e8f0;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.4em;
  color: var(--font-color);
  background-color: var(--background-color);
  transition: var(--transition);
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* Header Styles */
.site-header {
  background: #faf8f5;
  width: 100%;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-gray);
}

.site-logo {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-logo .logo-news {
  color: var(--primary-red);
}

.site-logo .logo-island {
  color: var(--black);
}

.dark-mode .site-logo .logo-island {
  color: var(--white);
}

.dark-mode .site-logo .logo-news {
  color: var(--light-red);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.main-navigation a {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
}

.home-icon {
  font-size: 20px;
  margin-right: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--black);
}

.dark-mode .menu-toggle {
  color: var(--white);
}

/* Marquee Section */
.marquee-section {
  background: var(--primary-red);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.marquee-label {
  font-weight: bold;
  color: var(--white);
  padding: 0 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-content {
  flex: 1;
  overflow: hidden;
}

.marquee-text {
  display: flex;
  animation: marquee 40s linear infinite;
  gap: 50px;
  color: var(--white);
}

.marquee-text span {
  white-space: nowrap;
}

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

.dark-mode-toggle {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-right: 20px;
  transition: var(--transition);
}

.dark-mode-toggle::before {
  content: '☀️';
}

.dark-mode .dark-mode-toggle::before {
  content: '🌙';
}

/* Main Content Area */
.main-content {
  display: flex;
  gap: 30px;
  margin: 40px auto;
  width: 85%;
}

.content-area {
  flex: 0 0 60%;
}

.sidebar-area {
  flex: 0 0 40%;
}

/* Section Heading */
.section-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.section-heading h2 {
  color: var(--primary-red);
  font-size: 28px;
  font-weight: bold;
}

.section-heading::after {
  content: '';
  height: 2px;
  flex: 1;
  background: var(--primary-red);
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.news-column-left .news-category-section {
  margin-bottom: 40px;
}

.category-title {
  color: var(--primary-red);
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.news-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-gray);
}

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

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}

/* Featured News (Right Column) */
.featured-news {
  margin-bottom: 30px;
}

.featured-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.featured-title {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
  margin: 10px 0;
}

.news-separator {
  height: 1px;
  background: var(--border-gray);
  margin: 30px 0;
}

.news-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.medium-news {
  display: flex;
  flex-direction: column;
}

.medium-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Sidebar */
.widget {
  background: var(--light-gray);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.dark-mode .widget {
  background: #2a2a2a;
}

.widget-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-red);
}

/* Secondary Section */
.secondary-section {
  width: 90%;
  margin: 50px auto;
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.category-column .news-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.small-image {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.news-item-separator {
  height: 0.5px;
  background: var(--border-gray);
  margin: 12px 0;
}

/* World Section */
.world-section {
  width: 90%;
  margin: 50px auto;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.world-news-item {
  display: flex;
  flex-direction: column;
}

.world-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.world-news-item .news-title {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}

.world-news-item .news-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 10px 0;
}

.dark-mode .world-news-item .news-excerpt {
  color: #aaa;
}

.read-button {
  background: var(--primary-red);
  color: var(--white);
  padding: 8px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  margin-top: 10px;
  width: fit-content;
}

.read-button:hover {
  background: #990000;
  color: var(--white);
}

.more-button {
  background: var(--primary-red);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.more-button:hover {
  background: #cc0000;
  color: var(--white);
}

/* Gallery Section */
.gallery-section {
  width: 90%;
  margin: 50px auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.gallery-item {
  position: relative;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-caption {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 50px 0 20px;
  margin-top: 80px;
}

.dark-mode .site-footer {
  background: #1a1a1a;
}

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

.footer-section h3 {
  color: var(--primary-red);
  margin-bottom: 20px;
  font-size: 20px;
}

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

.footer-section li {
  margin-bottom: 12px;
}

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

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-red);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 35px;
  height: 35px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icons a:hover {
  background: #cc0000;
  transform: translateY(-3px);
}

/* Single Post */
.single-post {
  width: 90%;
  margin: 40px auto;
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 36px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

.post-meta-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
  padding: 15px 0;
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
}

.post-featured-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
}

.post-content {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content img {
  margin: 30px 0;
  border-radius: 8px;
}

.post-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.tag {
  background: var(--primary-red);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
}

.author-box {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
  display: flex;
  gap: 25px;
  margin: 40px 0;
}

.dark-mode .author-box {
  background: #2a2a2a;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.author-actions {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.author-actions button {
  padding: 8px 20px;
  border: 1px solid var(--primary-red);
  background: transparent;
  color: var(--primary-red);
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.author-actions button:hover {
  background: var(--primary-red);
  color: var(--white);
}

.related-articles {
  margin-top: 60px;
}

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

.related-item .related-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Archive/Category Page */
.archive-header {
  text-align: center;
  margin: 40px 0;
}

.archive-title {
  font-size: 36px;
  color: var(--primary-red);
  font-weight: bold;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 90%;
  margin: 0 auto 40px;
}

.archive-post {
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

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

.archive-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.archive-post-content {
  padding: 20px;
}

.view-more-btn {
  text-align: center;
  margin: 40px 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-red);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
  font-size: 24px;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background: #cc0000;
  transform: translateY(-3px);
}

/* Comments */
.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-gray);
}

.comment-list {
  list-style: none;
  margin-bottom: 40px;
}

.comment {
  padding: 25px;
  background: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 20px;
}

.dark-mode .comment {
  background: #2a2a2a;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.comment-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  margin-bottom: 15px;
  font-family: inherit;
}

.comment-form button {
  background: var(--primary-red);
  color: var(--white);
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
}

.comment-form button:hover {
  background: #cc0000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    padding: 20px;
  }

  .dark-mode .main-navigation ul {
    background: var(--dark-gray);
  }

  .main-navigation ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .news-grid,
  .three-column-grid,
  .gallery-grid,
  .related-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    flex-direction: column;
  }

  .content-area,
  .sidebar-area,
  .single-post,
  .archive-grid {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

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

/* Search Form */
.search-form {
  display: flex;
  margin-bottom: 30px;
}

.search-form input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-gray);
  border-radius: 5px 0 0 5px;
}

.search-form button {
  background: var(--primary-red);
  color: var(--white);
  padding: 12px 25px;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

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

.pagination a,
.pagination span {
  padding: 10px 18px;
  border: 1px solid var(--border-gray);
  border-radius: 5px;
  transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
  background: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 100px 20px;
}

.error-404 h1 {
  font-size: 120px;
  color: var(--primary-red);
  margin-bottom: 20px;
}

.error-404 h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
