/* ========================================
   STAGE RIOT MEDIA - CUSTOM ENHANCEMENTS
   Add this to your theme to make it more visually appealing
   ======================================== */

/* ====================
   HERO SECTION IMPROVEMENTS
   ==================== */

/* Darker overlay on hero image for better text contrast */
.m-hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.m-hero__content {
  position: relative;
  z-index: 2;
}

/* Make hero title more impactful */
.m-hero-title.bigger {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  letter-spacing: -0.5px;
}

@media only screen and (min-width: 48rem) {
  .m-hero-title.bigger {
    font-size: 4.5rem;
  }
}

/* Enhance hero description */
.m-hero-description.bigger {
  font-size: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Better CTA button styling */
.m-button.filled {
  background: #ffffff;
  color: #000000;
  padding: 14px 32px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.m-button.filled:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

/* ====================
   ARTICLE CARDS ENHANCEMENT
   ==================== */

/* Add subtle border and better shadows */
.m-article-card:before {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .m-article-card:before {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Enhanced hover effect */
.m-article-card:hover {
  transform: translateY(-8px);
}

.m-article-card:hover:before {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .m-article-card:hover:before {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Add gradient overlay to card images */
.m-article-card__picture:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Make card titles bolder and larger */
.m-article-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

@media only screen and (min-width: 48rem) {
  .m-article-card__title {
    font-size: 1.5rem;
  }
}

/* Enhance tag styling with accent color */
.m-article-card__tag {
  color: #0470ee;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

[data-theme="dark"] .m-article-card__tag {
  color: #6b9fff;
}

/* Better timestamp styling */
.m-article-card__timestamp {
  font-size: 0.813rem;
  opacity: 0.8;
}

/* ====================
   FEATURED SLIDER IMPROVEMENTS
   ==================== */

/* Add more dramatic overlay to featured articles */
.m-featured-article__picture div {
  opacity: 0.5;
}

.m-featured-article:hover .m-featured-article__picture div {
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

/* Make featured titles pop more */
.m-featured-article__title {
  font-weight: 700;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

/* Enhance featured badge */
.m-featured-article__ribbon {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

@media only screen and (min-width: 48rem) {
  .m-featured-article__ribbon {
    padding: 0 10px;
  }
}

/* Better featured tag styling */
.m-featured-article__tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* ====================
   ACCENT COLORS & HIGHLIGHTS
   ==================== */

/* Add accent color to links */
a:not(.m-button):not(.m-icon-button) {
  transition: color 0.2s ease;
}

a:not(.m-button):not(.m-icon-button):hover {
  color: #0470ee;
}

[data-theme="dark"] a:not(.m-button):not(.m-icon-button):hover {
  color: #6b9fff;
}

/* ====================
   TYPOGRAPHY ENHANCEMENTS
   ==================== */

/* Better heading hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.3px;
}

.m-heading__title.in-post {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

@media only screen and (min-width: 48rem) {
  .m-heading__title.in-post {
    font-size: 3rem;
  }
}

/* Better meta information styling */
.m-heading__meta__tag {
  background: linear-gradient(135deg, #0470ee 0%, #0356c7 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  transition: transform 0.2s ease;
}

.m-heading__meta__tag:hover {
  transform: scale(1.05);
}

/* ====================
   SEARCH ENHANCEMENT
   ==================== */

.m-search__input {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.m-search__input:focus {
  border-color: #0470ee;
  box-shadow: 0 0 0 3px rgba(4, 112, 238, 0.1);
}

/* ====================
   ANIMATIONS
   ==================== */

/* Smooth fade-in for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.m-article-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.m-article-card:nth-child(1) { animation-delay: 0.1s; }
.m-article-card:nth-child(2) { animation-delay: 0.2s; }
.m-article-card:nth-child(3) { animation-delay: 0.3s; }
.m-article-card:nth-child(4) { animation-delay: 0.4s; }
.m-article-card:nth-child(5) { animation-delay: 0.5s; }
.m-article-card:nth-child(6) { animation-delay: 0.6s; }

/* ====================
   NAVIGATION IMPROVEMENTS
   ==================== */

/* Better navigation link hover effects */
.m-menu__item a {
  position: relative;
  transition: color 0.2s ease;
}

.m-menu__item a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0470ee;
  transition: width 0.3s ease;
}

.m-menu__item a:hover:after {
  width: 100%;
}

/* ====================
   POST CONTENT ENHANCEMENTS
   ==================== */

/* Better content readability */
.m-article-content p {
  line-height: 1.8;
  margin-bottom: 1.5em;
}

/* Styled blockquotes */
.m-article-content blockquote {
  border-left: 4px solid #0470ee;
  padding-left: 20px;
  margin-left: 0;
  font-style: italic;
  color: var(--titles-color);
  opacity: 0.9;
}

/* Better image captions */
.kg-image-card figcaption {
  font-size: 0.875rem;
  opacity: 0.7;
  text-align: center;
  margin-top: 10px;
}

/* ====================
   RESPONSIVE IMPROVEMENTS
   ==================== */

@media only screen and (max-width: 47.99rem) {
  /* Better mobile spacing */
  .m-article-card {
    margin-bottom: 30px;
  }
  
  /* Larger mobile titles */
  .m-article-card__title {
    font-size: 1.25rem;
  }
}

/* ====================
   ACCESSIBILITY ENHANCEMENTS
   ==================== */

/* Better focus states */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #0470ee;
  outline-offset: 2px;
}

/* ====================
   DARK MODE SPECIFIC
   ==================== */

[data-theme="dark"] .m-button.filled {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .m-button.filled:hover {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  background: #f0f0f0;
}

[data-theme="dark"] .m-heading__meta__tag {
  background: linear-gradient(135deg, #2c2fe6 0%, #1a1dc4 100%);
}

/* ====================
   NEWSLETTER SECTION
   ==================== */

.m-subscribe-section {
  background: linear-gradient(135deg, #f4f8fd 0%, #e8f2ff 100%);
  border-radius: 15px;
  padding: 40px 20px;
  margin: 40px 0;
}

[data-theme="dark"] .m-subscribe-section {
  background: linear-gradient(135deg, #141920 0%, #1a1f2e 100%);
}

.m-subscribe-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ====================
   AUTHOR SECTION
   ==================== */

.m-author {
  border-top: 2px solid rgba(4, 112, 238, 0.1);
  padding-top: 40px;
}

.m-author__picture {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

/* ====================
   SOCIAL SHARE BUTTONS
   ==================== */

.m-share .m-icon-button.in-share {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.m-share .m-icon-button.in-share:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
