/* Culture Page Styles */

.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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='%23c9a962' 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");
  opacity: 0.5;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-hero-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  display: block;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.page-hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Era Tabs */
.era-tabs-section {
  padding: 2rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.era-tabs-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.era-tab {
  padding: 1rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--transition-fast);
  min-width: 140px;
}

.era-tab:hover {
  border-color: var(--accent-gold);
}

.era-tab.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: white;
}

.era-tab-period {
  font-size: 0.75rem;
  opacity: 0.7;
}

.era-tab-name {
  font-size: 1rem;
  font-weight: 600;
}

/* Culture Content */
.culture-content-section {
  background: var(--bg-primary);
  padding: 4rem 2rem;
}

.culture-container {
  max-width: 1400px;
  margin: 0 auto;
}

.culture-era-content {
  display: none;
}

.culture-era-content.active {
  display: block;
}

.culture-era-header {
  text-align: center;
  margin-bottom: 3rem;
}

.culture-era-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.culture-era-period {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.culture-era-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

.culture-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.culture-category {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.culture-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-gold);
}

.culture-category-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.culture-category-title {
  font-size: 1.35rem;
  margin: 0;
}

.culture-category-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.culture-works {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.culture-work {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.culture-work:hover {
  background: var(--bg-tertiary);
  transform: translateX(5px);
}

.culture-work-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  flex-shrink: 0;
  overflow: hidden;
}

.culture-work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.culture-work-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.culture-work-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.culture-work-creator {
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.culture-work-year {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Gallery Section */
.gallery-section {
  background: var(--bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item-image {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  transition: transform var(--transition-medium);
}

.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover .gallery-item-image {
  transform: scale(1.1);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-item-creator {
  font-size: 0.85rem;
  opacity: 0.8;
}

.gallery-item-era {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-gold);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Quote Section */
.quote-section {
  padding: 6rem 2rem;
  background: var(--bg-tertiary);
  text-align: center;
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  position: relative;
}

.quote-text::before,
.quote-text::after {
  content: '"';
  font-size: 4rem;
  color: var(--accent-gold);
  opacity: 0.3;
  position: absolute;
  line-height: 1;
}

.quote-text::before {
  top: -20px;
  left: -30px;
}

.quote-text::after {
  bottom: -40px;
  right: -30px;
}

.quote-author {
  font-size: 1.1rem;
  color: var(--accent-gold);
  font-style: normal;
}

/* Gallery Modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-gold);
  color: white;
}

.modal-body {
  overflow-y: auto;
  max-height: 90vh;
}

.gallery-modal-image {
  width: 100%;
  height: 400px;
  background: var(--bg-tertiary);
}

.gallery-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-modal-info {
  padding: 2rem;
}

.gallery-modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.gallery-modal-creator {
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.gallery-modal-year {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.gallery-modal-description {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 1024px) {
  .culture-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .era-tabs-container {
    flex-direction: column;
    align-items: center;
  }
  
  .era-tab {
    width: 100%;
    max-width: 280px;
  }
  
  .culture-categories {
    grid-template-columns: 1fr;
  }
  
  .gallery-modal-image {
    height: 250px;
  }
  
  .quote-text::before,
  .quote-text::after {
    display: none;
  }
}
