/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f0f2f5;
}

.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px 12px 0 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.site-title:hover {
  color: #ffd700;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

nav a:hover {
  color: #ffd700;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 100;
}

.dropdown-content a {
  color: #1a1a2e;
  padding: 10px 16px;
  display: block;
}

.dropdown-content a:hover {
  background: #f0f2f5;
  color: #ffd700;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Main content */
.rounded-white-box {
  background: white;
  padding: 2rem;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Typography */
h1, h2, h3 {
  margin: 1.5rem 0 1rem 0;
  color: #1a1a2e;
}

h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: #2c3e50;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Blog and Music posts */
article {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.post-date {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.post-summary, .post-content, .post-content-full {
  margin: 1rem 0;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: bold;
}

/* Wisdom preview on homepage */
.wisdom-preview {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  text-align: center;
}

.wisdom-preview img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.wisdom-text {
  font-style: italic;
  font-size: 1.1rem;
  color: #1a1a2e;
}

/* Gallery page */
.wisdom-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.wisdom-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.wisdom-card:hover {
  transform: translateY(-4px);
}

.wisdom-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Audio player */
audio {
  width: 100%;
  margin: 10px 0;
  border-radius: 8px;
}

/* Rating stars */
.average-rating {
  background: #f0f2f5;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin: 1rem 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  background: #1a1a2e;
  color: white;
  border-radius: 0 0 12px 12px;
  margin-top: 2rem;
}

.site-footer p {
  color: white;
  margin: 0;
  font-size: 0.85rem;
}

.last-updated {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .site-wrapper {
    padding: 10px;
  }
  
  .header-inner {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    justify-content: center;
    gap: 1rem;
  }
  
  .rounded-white-box {
    padding: 1rem;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  
  .dropdown-content {
    position: static;
    background: rgba(255,255,255,0.1);
    margin-top: 0.5rem;
  }
  
  .dropdown-content a {
    color: white;
    padding: 8px 12px;
  }
  
  .wisdom-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .wisdom-card img {
    max-height: 200px;
    object-fit: cover;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .wisdom-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print */
@media print {
  .site-header, .site-footer, audio, .dropdown {
    display: none;
  }
}

.blog-card-image {
  margin: -20px -20px 15px -20px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.blog-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
/* Make all homepage images scale naturally - no cropping */
.homepage img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Keep floated images small but proportional */
.homepage article > div > a[style*="float: left"] img {
  width: 120px;
  height: auto;
}


.radio-player {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 24px;
  margin: 1rem 0;
  text-align: center;
}
.radio-player button {
  background: #ff5722;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-weight: bold;
  cursor: pointer;
}
.radio-player button:hover {
  background: #e64a19;
}
.radio-controls {
  margin-top: 1rem;
}
#radioAudio {
  width: 100%;
  margin: 0.5rem 0;
}
#radioNowPlaying {
  font-style: italic;
  color: #2c3e50;
}

