/* 
 * Modern UI Enhancements for Astra Theme - 2025
 * These styles enhance the theme with contemporary design elements
 * while preserving Astra's core functionality
 */

:root {
  /* Modern color palette - compatible with Astra */
  --modern-primary: #2563eb;
  --modern-secondary: #10b981;
  --modern-accent: #f59e0b;
  --modern-background: #f8fafc;
  --modern-text: #1e293b;
  --modern-text-light: #64748b;
  --modern-border: #e2e8f0;
  --modern-shadow: rgba(0, 0, 0, 0.08);
  --modern-gradient: linear-gradient(135deg, var(--modern-primary), var(--modern-secondary));
  --modern-gradient-alt: linear-gradient(135deg, var(--modern-accent), var(--modern-secondary));
  --modern-card-bg: #ffffff;
  --modern-card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* Enhanced typography - works with Astra's typography system */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--modern-text);
}

/* Modern header enhancements - enhance without breaking */
.modern-header {
  box-shadow: 0 4px 12px var(--modern-shadow);
  background: #fff;
  transition: all 0.3s ease;
}

.modern-header.scrolled {
  padding-top: 5px;
  padding-bottom: 5px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Site branding enhancements */
.site-branding .site-title {
  font-weight: 800;
  background: var(--modern-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation enhancements - enhance without breaking functionality */
.main-navigation .menu-item a {
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.main-navigation .menu-item a:hover {
  color: var(--modern-primary);
}

.main-navigation .menu-item a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--modern-gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.main-navigation .menu-item a:hover:after {
  width: 70%;
}

/* Modern blog cards - enhance without breaking Astra's blog structure */
.modern-post-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: none;
  background: var(--modern-card-bg);
  margin-bottom: 30px;
}

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

/* Post thumbnail enhancements */
.modern-post-card .post-thumb {
  transition: transform 0.5s ease;
}

.modern-post-card:hover .post-thumb {
  transform: scale(1.03);
}

/* Entry header enhancements */
.modern-post-card .entry-header {
  padding: 20px 25px 0;
}

.modern-post-card .entry-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.modern-post-card .entry-title a {
  color: var(--modern-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.modern-post-card .entry-title a:hover {
  color: var(--modern-primary);
}

/* Entry content enhancements */
.modern-post-card .entry-content {
  padding: 0 25px 20px;
  color: var(--modern-text-light);
  line-height: 1.7;
}

.modern-post-card .entry-content p {
  margin-bottom: 1em;
}

/* Entry meta enhancements */
.modern-post-card .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.875rem;
  padding: 0 25px;
}

.modern-post-card .cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.modern-post-card .cat-links a {
  background: var(--modern-gradient);
  color: white;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modern-post-card .cat-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modern-post-card .posted-on {
  font-size: 0.875rem;
  color: var(--modern-text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.modern-post-card .posted-on a {
  color: var(--modern-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.modern-post-card .posted-on a:hover {
  color: var(--modern-primary);
}

/* Read more button */
.modern-post-card .ast-post-format- {
  padding: 0 25px 25px;
}

.modern-post-card .ast-post-format- .ast-read-more {
  background: var(--modern-gradient);
  border: none;
  color: white;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

.modern-post-card .ast-read-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Modern footer enhancements */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
}

.site-footer .widget-title {
  color: white;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.site-footer .widget-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--modern-gradient);
  border-radius: 2px;
}

.site-footer a {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: white;
}

/* Buttons and links */
a {
  color: var(--modern-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--modern-secondary);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  background: var(--modern-gradient);
  border: none;
  color: white;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea,
select {
  border: 1px solid var(--modern-border);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus,
select:focus {
  border-color: var(--modern-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .modern-post-card .entry-header {
    padding: 15px 20px 0;
  }
  
  .modern-post-card .entry-content {
    padding: 0 20px 15px;
  }
  
  .modern-post-card .entry-meta {
    padding: 0 20px;
  }
  
  .modern-post-card .ast-post-format- {
    padding: 0 20px 20px;
  }
  
  .site-branding .site-title {
    font-size: 1.5rem;
  }
  
  .modern-post-card .entry-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .modern-post-card {
    margin-bottom: 20px;
  }
  
  .modern-post-card .entry-header {
    padding: 15px;
  }
  
  .modern-post-card .entry-content {
    padding: 0 15px 15px;
  }
  
  button,
  input[type="button"],
  input[type="reset"],
  input[type="submit"],
  .ast-read-more {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
