/* UI Style 7 - Layout B */

body {
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

section {
  margin-bottom: 3rem;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #334155;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hero {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  color: #0f172a;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #475569;
  margin-top: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h3 a, .card h4 a {
  color: #1e293b;
}

.card h3 a:hover, .card h4 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.meta {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.summary {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.rank {
  display: inline-block;
  background: #ef4444;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.date {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.big-link {
  flex: 1;
  min-width: 200px;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  transition: transform 0.2s;
}

.big-link:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.more-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.video-detail {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-info {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.video-info p {
  margin: 0.5rem 0;
  line-height: 1.8;
}

.video-highlight, .video-summary, .video-review {
  margin: 2rem 0;
}

.video-highlight p, .video-summary p, .video-review p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.list-header {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

footer {
  background: #1e293b;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .big-link {
    font-size: 1.2rem;
    padding: 1.5rem;
  }
}
