/* Modern Article Style for Sur la bonne longueur d'onde */

:root {
  --primary-color: #5c85a0;
  --secondary-color: #e89f6d;
  --accent-color: #4d6c84;
  --bg-color: #f8f8f8;
  --text-color: #333333;
  --heading-color: #2c4051;
  --link-color: #5c85a0;
  --link-hover-color: #e89f6d;
  --card-bg: #ffffff;
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --spacing-unit: 1rem;
  --border-radius: 12px;
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-primary: 'Open Sans', sans-serif;
  --font-heading: 'Cormorant Garamond', serif;
  --main-purple: #9c5588;
  --dark-purple: #552c64;
  --light-purple: #f9f6fb;
  --light-border: #eaeaea;
}

/* General Reset & Base Styles */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

/* Article Container */
.article-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-family: var(--font-primary);
  color: var(--text-color);
}

.single-article {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  padding: 2.5rem;
  transition: var(--transition);
}

/* Article Header */
.article-header {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--light-border);
  padding-bottom: 1.5rem;
  position: relative;
}

.article-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--main-purple), var(--dark-purple));
  border-radius: 3px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #666;
}

.article-meta time {
  position: relative;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
}

.article-meta time::before {
  content: "📅";
  margin-right: 0.5rem;
  opacity: 0.8;
}

.article-meta time::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--main-purple);
  border-radius: 50%;
  transform: translateY(-50%);
}

.article-category {
  color: var(--main-purple);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.article-category::before {
  content: "🔖";
  margin-right: 0.5rem;
  opacity: 0.8;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--dark-purple);
  line-height: 1.2;
  margin: 0.75rem 0;
  letter-spacing: -0.01em;
}

/* Featured Image */
.article-featured-image {
  grid-column: 1 / -1;
  margin: 0 0 2.5rem 0;
  border-radius: calc(var(--border-radius) - 2px);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.article-featured-image:hover img {
  transform: scale(1.03);
}

.article-featured-image figcaption {
  padding: 0.85rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  font-style: italic;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(3px);
}

/* Article Content */
.article-content {
  grid-column: 1;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #444;
}

.article-content p {
  margin-bottom: 1.75rem;
}

.article-content p:first-of-type {
  font-size: 1.2rem;
  color: var(--dark-purple);
  font-weight: 500;
}

.article-content p:first-of-type::first-letter {
  font-family: var(--font-heading);
  float: left;
  font-size: 3.5rem;
  line-height: 0.9;
  padding-right: 0.5rem;
  color: var(--main-purple);
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--dark-purple);
  margin: 2.5rem 0 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.article-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--main-purple), var(--dark-purple));
  border-radius: 2px;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark-purple);
  margin: 2rem 0 1rem;
}

/* Event Details Section */
.event-details {
  background-color: var(--light-purple);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  border-left: 4px solid var(--main-purple);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.event-detail {
  display: flex;
  margin-bottom: 1rem;
  align-items: baseline;
}

.detail-label {
  font-weight: 600;
  min-width: 120px;
  color: var(--dark-purple);
  position: relative;
  padding-left: 1.5rem;
}

.detail-label::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--main-purple);
  font-size: 1.5rem;
  line-height: 1;
  top: -0.15rem;
}

/* Sidebar */
.article-sidebar {
  grid-column: 2;
}

.related-articles {
  background-color: var(--light-purple);
  padding: 1.75rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 2rem;
}

.related-articles h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--dark-purple);
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #d4c1dd;
  position: relative;
}

.related-articles h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--main-purple);
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(212, 193, 221, 0.3);
  transition: var(--transition);
}

.related-articles li:last-child {
  border-bottom: none;
}

.related-articles li:hover {
  transform: translateX(5px);
}

.related-articles a {
  color: var(--main-purple);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  font-size: 1rem;
  position: relative;
  padding-left: 1.25rem;
}

.related-articles a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--main-purple);
  font-weight: bold;
  transition: var(--transition);
}

.related-articles a:hover {
  color: var(--dark-purple);
}

.related-articles a:hover::before {
  transform: translateX(3px);
}

/* Author Bio Section */
.author-bio {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background-color: var(--light-purple);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.author-info h4 {
  margin: 0 0 0.5rem;
  color: var(--dark-purple);
  font-size: 1.2rem;
}

.author-info p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  margin-top: 2rem;
  gap: 0.75rem;
}

.share-button {
  background-color: var(--light-purple);
  color: var(--main-purple);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}

.share-button:hover {
  background-color: var(--main-purple);
  color: white;
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .single-article {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  
  .article-content, 
  .article-sidebar {
    grid-column: 1;
  }
  
  .article-header {
    padding-bottom: 1.25rem;
  }
  
  .article-title {
    font-size: 2.2rem;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .author-info {
    margin-top: 0.5rem;
  }
  
  .share-buttons {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .article-container {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }
  
  .single-article {
    padding: 1.25rem;
    border-radius: 8px;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-content p:first-of-type::first-letter {
    font-size: 2.5rem;
  }
  
  .event-detail {
    flex-direction: column;
  }
  
  .detail-label {
    min-width: auto;
    margin-bottom: 0.25rem;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .article-meta time::after {
    display: none;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.article-content {
  animation: fadeIn 0.6s ease-in-out;
}

.article-sidebar {
  animation: fadeIn 0.6s ease-in-out 0.2s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* Additional Element Styling */
blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--main-purple);
  background-color: var(--light-purple);
  font-style: italic;
  color: #555;
  position: relative;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

blockquote::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 4rem;
  position: absolute;
  left: 10px;
  top: -10px;
  color: rgba(156, 85, 136, 0.2);
}

.article-content ul, 
.article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.75rem;
  padding-left: 1rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content li::marker {
  color: var(--main-purple);
}

.article-content a {
  color: var(--main-purple);
  text-decoration: underline;
  text-decoration-color: rgba(156, 85, 136, 0.3);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.article-content a:hover {
  color: var(--dark-purple);
  text-decoration-color: var(--dark-purple);
}

/* Image captions within content */
.article-content figure {
  margin: 2.5rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.article-content figure img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.article-content figure:hover img {
  transform: scale(1.02);
}

.article-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 0.75rem;
  background-color: rgba(249, 246, 251, 0.7);
  font-style: italic;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.article-tag {
  background-color: var(--light-purple);
  color: var(--main-purple);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.article-tag:hover {
  background-color: var(--main-purple);
  color: white;
  transform: translateY(-2px);
}

/* Table Styling */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-content th {
  background-color: var(--main-purple);
  color: white;
  text-align: left;
  padding: 1rem;
}

.article-content td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content tr:nth-child(even) {
  background-color: #f9f9f9;
}

.article-content tr:hover {
  background-color: var(--light-purple);
}

/* Footer Adjustments */
footer {
  margin-top: 50px;
}

/* Style additions for all article pages */
.single-post .oxy-header-wrapper {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
} 