/* ============================================
   Art Ideas - Creative Art Blog
   A vibrant, inviting design for artists
   ============================================ */

:root {
  /* Vibrant color palette */
  --color-primary: #e63946;       /* Passionate red */
  --color-secondary: #457b9d;     /* Calm blue */
  --color-accent: #f4a261;        /* Warm orange */
  --color-highlight: #2a9d8f;     /* Teal green */
  --color-purple: #9b5de5;        /* Creative purple */
  
  /* Backgrounds */
  --bg-cream: #fefae0;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  
  /* Text colors */
  --text-dark: #1d3557;
  --text-body: #2b2d42;
  --text-muted: #6c757d;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #f4a261 100%);
  --gradient-creative: linear-gradient(135deg, #2a9d8f 0%, #457b9d 50%, #9b5de5 100%);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
  
  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-colorful: 0 8px 30px rgba(155, 93, 229, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg-cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  margin-top: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container--narrow {
  max-width: 800px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 600;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--gradient-warm);
  color: white;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-medium);
    display: none;
  }
  
  .main-nav.open {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: var(--spacing-md);
    gap: var(--spacing-xs);
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: var(--gradient-hero);
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: float 30s linear infinite;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--text-dark);
}

.btn--primary:hover {
  background: #e8944f;
  color: var(--text-dark);
}

.btn--secondary {
  background: white;
  color: var(--color-secondary);
}

.btn--outline {
  background: transparent;
  border: 2px solid currentColor;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--spacing-xl) 0;
}

.section--alt {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-warm);
  border-radius: 2px;
}

.section-intro {
  max-width: 700px;
  margin: var(--spacing-md) auto 0;
  text-align: center;
  color: var(--text-muted);
}

/* ============================================
   Blog Cards Grid
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-colorful);
}

.blog-card__image {
  position: relative;
  height: 200px;
  background: var(--gradient-creative);
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  opacity: 0.8;
}

.blog-card__category {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card__content {
  padding: var(--spacing-md);
}

.blog-card__title {
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
}

.blog-card__title a {
  color: var(--text-dark);
}

.blog-card__title a:hover {
  color: var(--color-primary);
}

.blog-card__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-card__date {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card__read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   About / Author Section
   ============================================ */
.author-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (max-width: 768px) {
  .author-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.author-image {
  position: relative;
}

.author-image__frame {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-colorful);
  position: relative;
  margin: 0 auto;
}

.author-image__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-warm);
  opacity: 0.1;
  z-index: 1;
}

.author-image__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-image__placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-image__placeholder svg {
  width: 60%;
  height: 60%;
  opacity: 0.3;
}

/* Decorative paint splashes */
.author-image::before,
.author-image::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.author-image::before {
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  top: -20px;
  right: 20px;
  opacity: 0.6;
}

.author-image::after {
  width: 50px;
  height: 50px;
  background: var(--color-highlight);
  bottom: 30px;
  left: -10px;
  opacity: 0.6;
}

.author-bio h2 {
  margin-bottom: var(--spacing-sm);
}

.author-bio__subtitle {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.author-bio p {
  color: var(--text-body);
}

.author-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
  .author-social {
    justify-content: center;
  }
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 50%;
  color: var(--text-dark);
  transition: background 0.2s ease, transform 0.2s ease;
}

.author-social a:hover {
  background: var(--gradient-warm);
  color: white;
  transform: scale(1.1);
}

/* ============================================
   Features / Why Learn Section
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-creative);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.feature-card h3 {
  margin-bottom: var(--spacing-xs);
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Blog Post Article
   ============================================ */
.article-header {
  background: var(--gradient-hero);
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.article-header h1 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  font-size: 0.95rem;
  opacity: 0.9;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-category {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 50px;
}

.article-content {
  background: var(--bg-white);
  padding: var(--spacing-xl) 0;
}

.article-body {
  font-size: 1.1rem;
}

.article-body h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 3px solid var(--color-accent);
}

.article-body h3 {
  margin-top: var(--spacing-md);
  color: var(--color-secondary);
}

.article-body ul, .article-body ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-md);
}

.article-body li {
  margin-bottom: var(--spacing-xs);
}

.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  margin: var(--spacing-md) 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-dark);
}

/* Image placeholder in articles */
.image-placeholder {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e9ecef 100%);
  border: 2px dashed var(--color-secondary);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
  margin: var(--spacing-md) 0;
}

.image-placeholder__icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  opacity: 0.5;
}

.image-placeholder__text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Tip / Note boxes */
.tip-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-left: 4px solid var(--color-highlight);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

.tip-box__title {
  font-weight: 700;
  color: var(--color-highlight);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.tip-box p {
  margin: 0;
}

/* Materials list */
.materials-list {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

.materials-list h4 {
  margin-top: 0;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.materials-list ul {
  margin: 0;
  padding-left: var(--spacing-md);
}

.materials-list li {
  margin-bottom: var(--spacing-xs);
}

/* Step by step */
.steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.steps-list li {
  position: relative;
  padding-left: 60px;
  margin-bottom: var(--spacing-lg);
}

.steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--gradient-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter {
  background: var(--gradient-creative);
  color: white;
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.newsletter h2 {
  color: white;
  margin-bottom: var(--spacing-xs);
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--color-accent);
}

@media (max-width: 500px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-brand p {
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ============================================
   Blog Index Page
   ============================================ */
.page-header {
  background: var(--gradient-hero);
  color: white;
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: var(--spacing-xs);
}

.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--spacing-lg); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Paint brush cursor on certain elements */
.creative-cursor {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23e63946'%3E%3Cpath d='M20.71 4.04c-.39-.39-1.02-.39-1.41 0l-2.34 2.34 3.54 3.54 2.34-2.34c.39-.39.39-1.02 0-1.41l-2.13-2.13zM3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z'/%3E%3C/svg%3E"), auto;
}
