/*
  New 3-Column Layout for Athena-sama Website
  Left: Blog Cards | Center: 3D Character | Right: YouTube
*/

/* === MAIN 3-COLUMN LAYOUT === */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 6rem; /* Add space for fixed header */
  min-height: calc(100vh - 140px);
  align-items: start;
}

/* === COLUMN STYLES === */
.left-column,
.right-column {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 182, 193, 0.2);
  height: fit-content;
}

.center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  height: fit-content;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 3px solid rgba(255, 105, 180, 0.3);
  padding-bottom: 1rem;
}

.section-header h2 {
  color: #FF69B4;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #FF69B4, #87CEEB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

/* === VRM MAIN CONTAINER === */
.vrm-main-container {
  position: relative;
  width: 500px;
  height: 700px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  border: 2px solid rgba(255, 182, 193, 0.3);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  margin-top: 120px;
}

#vrm-canvas {
  width: 100%;
  height: 100%;
  border-radius: 23px;
}

/* === INTERACTIVE PANELS === */
.interactive-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin-bottom: 2rem;
}

.panel-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 182, 193, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.panel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 105, 180, 0.4);
}

.panel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.panel-card:hover::before {
  left: 100%;
}

.panel-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.panel-card h4 {
  color: #FF69B4;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.panel-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.panel-action {
  color: #FF69B4;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.8;
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
}

/* === CHARACTER STATUS === */
.character-status {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 182, 193, 0.2);
}

.character-status h3 {
  color: #FF69B4;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  border-bottom: 2px solid rgba(255, 105, 180, 0.3);
  padding-bottom: 0.8rem;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(135, 206, 235, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(255, 105, 180, 0.2);
}

.status-label {
  color: #666;
  font-weight: 500;
  font-size: 0.95rem;
}

.status-value {
  color: #FF69B4;
  font-weight: 600;
  font-size: 1.1rem;
}

/* === BLOG CARDS === */
.blog-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.blog-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 182, 193, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #FFE0EC, #87CEEB);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.blog-card-image.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.blog-card-image::before {
  content: '📝';
  font-size: 2rem;
  opacity: 0.6;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card h3 {
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.blog-date {
  color: #999;
  font-size: 0.8rem;
  background: rgba(255, 105, 180, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
}

.blog-read-button {
  color: #FF69B4;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border: 1px solid #FF69B4;
  border-radius: 20px;
  background: white;
  transition: all 0.3s ease;
}

.blog-read-button:hover {
  background: #FF69B4;
  color: white;
}

.more-blogs-button {
  text-align: center;
  margin-top: 1rem;
}

.more-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #FF69B4, #87CEEB);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.more-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

/* === YOUTUBE SECTION === */
.youtube-main-container {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 182, 193, 0.2);
}

.youtube-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
  background: rgba(255, 105, 180, 0.05);
  border-radius: 10px;
  border: 2px dashed rgba(255, 105, 180, 0.3);
}

.youtube-embed {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.youtube-embed iframe {
  width: 100%;
  height: 250px;
  border: none;
}

.youtube-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.youtube-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.youtube-button.primary {
  background: #FF0000;
  color: white;
}

.youtube-button.secondary {
  background: linear-gradient(135deg, #FF69B4, #87CEEB);
  color: white;
}

.youtube-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* === MODAL STYLES === */
.message-modal, .fortune-modal {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 105, 180, 0.3);
}

.message-content, .fortune-content {
  padding: 2rem;
  text-align: center;
}

.message-icon, .fortune-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.message-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #2c3e50;
  margin-bottom: 2rem;
}

.message-signature {
  font-style: italic;
  color: #FF69B4;
  font-weight: 500;
  margin-top: 2rem;
}

.fortune-content h3 {
  color: #FF69B4;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.fortune-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.fortune-details {
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(135, 206, 235, 0.1));
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
}

.fortune-details p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.fortune-details strong {
  color: #FF69B4;
  font-weight: 600;
}

.lucky-color, .lucky-item {
  color: #4ECDC4;
  font-weight: 600;
}

/* === FOOTER UPDATES === */
.social-link.booth {
  background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
  position: relative;
  padding-right: 3rem;
}

.external-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.8;
}

/* === LOADING STATES === */
.skeleton-text {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  color: transparent;
  border-radius: 4px;
  height: 1.2em;
  margin-bottom: 0.5rem;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 1.5rem;
  }
  
  .vrm-main-container {
    width: 400px;
    height: 600px;
  }
}

@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .center-column {
    order: 1;
  }
  
  .left-column {
    order: 2;
  }
  
  .right-column {
    order: 3;
  }
  
  .vrm-main-container {
    width: 350px;
    height: 500px;
  }
}

@media (max-width: 768px) {
  .main-layout {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .left-column,
  .right-column {
    padding: 1.5rem;
  }
  
  .vrm-main-container {
    width: 300px;
    height: 450px;
  }
  
  .interactive-panels {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .panel-card {
    padding: 1.2rem;
  }
  
  .character-status {
    padding: 1.5rem;
  }
  
  .status-grid {
    gap: 0.8rem;
  }
  
  .status-item {
    padding: 0.6rem 1rem;
  }
  
  .youtube-embed iframe {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .main-layout {
    padding: 0.5rem;
  }
  
  .left-column,
  .right-column,
  .character-status {
    padding: 1rem;
  }
  
  .vrm-main-container {
    width: 250px;
    height: 350px;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .blog-card-content {
    padding: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .social-link {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}