/*
 * Modern Visual Enhancements for Hello Elementor
 * Tutorial Blog Optimized Styling
 */

/* CSS Custom Properties for Modern Color Palette */
:root {
  /* Primary Colors */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  
  /* Secondary Colors */
  --secondary-color: #64748b;
  --secondary-hover: #475569;
  --secondary-light: #f1f5f9;
  
  /* Accent Colors */
  --accent-color: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: #ede9fe;
  
  /* Neutral Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --background: #ffffff;
  --background-alt: #f8fafc;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Success/Error Colors */
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* Modern Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--background);
}

/* Enhanced Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 2rem;
  margin-top: var(--space-xl);
}

h3 {
  font-size: 1.5rem;
  margin-top: var(--space-lg);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* Enhanced Paragraphs */
p {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  line-height: 1.7;
}

/* Modern Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

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

/* Content area links with underline effect */
.page-content a,
.entry-content a,
.comment-content a {
  text-decoration: underline;
  text-decoration-color: var(--primary-light);
  text-underline-offset: 0.2em;
  transition: all var(--transition-fast);
}

.page-content a:hover,
.entry-content a:hover,
.comment-content a:hover {
  text-decoration-color: var(--primary-color);
}

/* Modern Buttons */
button,
[type="submit"],
[type="button"],
.wp-block-button__link,
input[type="submit"] {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  text-transform: none;
  letter-spacing: 0.025em;
}

button:hover,
[type="submit"]:hover,
[type="button"]:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
}

button:active,
[type="submit"]:active,
[type="button"]:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Modern 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="date"],
select,
textarea {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
  background-color: var(--background);
  color: var(--text-primary);
}

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="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Enhanced Code Styling */
code,
kbd,
samp,
pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
  background-color: var(--background-alt);
  border-radius: var(--radius-sm);
}

code {
  padding: 0.125rem 0.25rem;
  font-size: 0.875em;
  color: var(--accent-color);
  border: 1px solid var(--border-light);
}

pre {
  background-color: var(--text-primary);
  color: #f8fafc;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

/* Modern Blockquotes */
blockquote {
  border-left: 4px solid var(--primary-color);
  background-color: var(--primary-light);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: -10px;
  left: var(--space-md);
  font-family: Georgia, serif;
  opacity: 0.3;
}

/* Enhanced Tables */
table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

table th {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  font-weight: 600;
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  border: none;
}

table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

table td:last-child {
  border-right: none;
}

table tbody tr:last-child td {
  border-bottom: none;
}

table tbody tr:hover {
  background-color: var(--background-alt);
}

/* Modern List Styling */
ul, ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

ul li::marker {
  color: var(--primary-color);
}

ol li::marker {
  color: var(--primary-color);
  font-weight: 600;
}

/* Enhanced Images */
img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Modern Cards for Post Listings */
.post,
article {
  background: var(--background);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
}

.post:hover,
article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Enhanced Post Meta */
.entry-meta,
.post-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.entry-meta a,
.post-meta a {
  color: var(--text-secondary);
  text-decoration: none;
}

.entry-meta a:hover,
.post-meta a:hover {
  color: var(--primary-color);
}

/* Modern Tags and Categories */
.tag-links a,
.cat-links a,
.post-categories a {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--secondary-color);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.tag-links a:hover,
.cat-links a:hover,
.post-categories a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.375rem;
  }
  
  .post,
  article {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
}

/* Tutorial Blog Specific Enhancements */

/* Site Title and Branding */
.site-title a {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.site-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-style: italic;
  margin-top: var(--space-xs);
}

/* Enhanced Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-3xl) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pagination a {
  background: var(--background);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.pagination .current {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

/* Enhanced Search Form */
.search-form {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.search-form input[type="search"] {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.search-form input[type="search"]:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-form button {
  padding: var(--space-sm) var(--space-lg);
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.search-form button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Widget Styling */
.widget {
  background: var(--background);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.widget-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-light);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-light);
}

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

.widget a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Comment Form Enhancements */
.comment-form {
  background: var(--background-alt);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-top: var(--space-xl);
  border: 1px solid var(--border-light);
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  display: block;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  margin-top: var(--space-lg);
}

/* Archive and Category Pages */
.archive-title,
.page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  text-align: center;
  position: relative;
}

.archive-title::after,
.page-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  margin: var(--space-md) auto 0;
  border-radius: var(--radius-sm);
}

.archive-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Tutorial-specific Post Meta */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--background-alt);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.entry-meta .meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.entry-meta .meta-item::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
}

.entry-meta .meta-item:first-child::before {
  display: none;
}

/* Reading Time Indicator */
.reading-time {
  background: var(--accent-light);
  color: var(--accent-color);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tutorial Difficulty Badge */
.difficulty-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.difficulty-beginner {
  background: var(--success-color);
  color: white;
}

.difficulty-intermediate {
  background: var(--warning-color);
  color: white;
}

.difficulty-advanced {
  background: var(--error-color);
  color: white;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  
  .entry-meta .meta-item::before {
    display: none;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
  
  .pagination a,
  .pagination span {
    min-width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }
}

/* Print Styles */
@media print {
  :root {
    --primary-color: #000;
    --text-primary: #000;
    --background: #fff;
  }
  
  .post,
  article {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .site-header,
  .site-footer,
  .widget,
  .comment-form {
    display: none;
  }
  
  .entry-meta {
    background: none;
    border: 1px solid #ccc;
  }
}
