/* ROUGESWORLD - Art Gallery Section (Magical-Cyberpunk) */

/* Art Theme Variables */
.art-theme {
  --primary-color: var(--cyber-purple);
  --secondary-color: var(--cyber-pink);
  --accent-color: var(--cyber-blue);
  --glow-color: var(--cyber-purple-glow);
  --section-bg: linear-gradient(135deg, 
    rgba(128, 0, 255, 0.1) 0%, 
    rgba(255, 0, 127, 0.05) 50%, 
    rgba(128, 0, 255, 0.1) 100%);
}

/* Magical-Cyberpunk Background Effects */
.magical-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(128, 0, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 0, 127, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #000000 0%, #110022 25%, #220033 50%, #110022 75%, #000000 100%);
  overflow: hidden;
}

.art-background {
  animation: magical-pulse 15s ease-in-out infinite alternate;
}

@keyframes magical-pulse {
  0% {
    background: 
      radial-gradient(ellipse at 20% 30%, rgba(128, 0, 255, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(255, 0, 127, 0.03) 0%, transparent 50%),
      linear-gradient(135deg, #000000 0%, #110022 25%, #220033 50%, #110022 75%, #000000 100%);
  }
  100% {
    background: 
      radial-gradient(ellipse at 20% 30%, rgba(128, 0, 255, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 70%, rgba(255, 0, 127, 0.08) 0%, transparent 50%),
      linear-gradient(135deg, #000000 0%, #220033 25%, #330044 50%, #220033 75%, #000000 100%);
  }
}

/* Magical Particles */
.magical-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.magical-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  animation: particle-drift 20s linear infinite;
}

@keyframes particle-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Magical Fog */
.magical-fog {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.2;
  background: 
    linear-gradient(to right, transparent 0%, rgba(128, 0, 255, 0.1) 25%, rgba(255, 0, 127, 0.1) 50%, rgba(128, 0, 255, 0.1) 75%, transparent 100%);
  filter: blur(8px);
  animation: fog-drift 30s ease-in-out infinite alternate;
}

@keyframes fog-drift {
  0% {
    transform: translateX(-5%) translateY(0);
  }
  50% {
    transform: translateX(5%) translateY(-2%);
  }
  100% {
    transform: translateX(-5%) translateY(2%);
  }
}

/* Magical Stars */
.magical-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--glow-color);
  opacity: 0.7;
  animation: star-twinkle 3s ease-in-out infinite;
}

.star:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.star:nth-child(2) {
  top: 25%;
  left: 80%;
  animation-delay: 0.5s;
}

.star:nth-child(3) {
  top: 60%;
  left: 20%;
  animation-delay: 1s;
}

.star:nth-child(4) {
  top: 70%;
  left: 90%;
  animation-delay: 1.5s;
}

.star:nth-child(5) {
  top: 40%;
  left: 50%;
  animation-delay: 2s;
}

@keyframes star-twinkle {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary-color);
}

.nav-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  transition: all var(--transition-smooth);
}

.nav-home:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--glow-color);
}

.nav-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-matrix);
  color: var(--text-secondary);
}

.breadcrumb-separator {
  color: var(--primary-color);
}

.current-section {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--glow-color);
}

/* Main Container */
.main-container {
  padding-top: 80px;
  min-height: 100vh;
}

/* Hero Section */
.art-hero {
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  z-index: 2;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin: 0 0 1rem 0;
  line-height: 1.1;
}

.magical-text {
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--glow-color);
  position: relative;
  display: inline-block;
}

.magical-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
  animation: magical-glitch 5s infinite;
  z-index: -1;
  opacity: 0.7;
}

@keyframes magical-glitch {
  0%, 90%, 100% {
    transform: translate(0);
    opacity: 0.7;
  }
  10% {
    transform: translate(-2px, 2px);
    opacity: 0.8;
  }
  20% {
    transform: translate(2px, -2px);
    opacity: 0.9;
  }
  30% {
    transform: translate(-1px, 1px);
    opacity: 0.7;
  }
  40% {
    transform: translate(1px, -1px);
    opacity: 0.8;
  }
  50% {
    transform: translate(0);
    opacity: 0.7;
  }
}

.hero-subtitle {
  font-family: var(--font-matrix);
  font-size: var(--text-lg);
  color: var(--secondary-color);
  margin: 0 0 2rem 0;
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
  letter-spacing: 2px;
}

.hero-description {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 500px;
}

/* Featured Artwork */
.featured-artwork {
  position: relative;
  z-index: 2;
}

.artwork-frame {
  position: relative;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 30px rgba(128, 0, 255, 0.3);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.artwork-frame:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 40px rgba(128, 0, 255, 0.5);
}

.artwork-image {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.artwork-frame:hover .featured-image {
  transform: scale(1.05);
}

.artwork-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-smooth);
}

.artwork-frame:hover .artwork-overlay {
  opacity: 1;
  transform: translateY(0);
}

.artwork-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--glow-color);
}

.artwork-description {
  font-family: var(--font-matrix);
  font-size: var(--text-sm);
  color: var(--secondary-color);
  margin: 0;
}

.frame-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 20px var(--glow-color);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity var(--transition-smooth);
}

.artwork-frame:hover .frame-glow {
  opacity: 1;
}

/* Gallery Section */
.art-gallery {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.title-text {
  color: var(--text-primary);
  text-shadow: 0 0 15px var(--glow-color);
}

.title-subtitle {
  font-family: var(--font-matrix);
  font-size: var(--text-md);
  color: var(--primary-color);
  font-weight: 400;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Gallery Filter */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-family: var(--font-matrix);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  transition: left 0.5s;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glow-color);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.artwork-card {
  position: relative;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.artwork-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px var(--glow-color);
}

.artwork-card .artwork-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.artwork-card .artwork-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.artwork-card:hover .artwork-image img {
  transform: scale(1.1);
}

.artwork-card .artwork-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.artwork-card:hover .artwork-overlay {
  opacity: 1;
}

.artwork-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-family: var(--font-matrix);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border-radius: 5px;
}

.action-btn:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--glow-color);
  transform: translateY(-2px);
}

.view-btn {
  background: rgba(128, 0, 255, 0.3);
}

.info-btn {
  background: rgba(255, 0, 127, 0.3);
}

.artwork-info {
  padding: 1.5rem;
  position: relative;
}

.artwork-card .artwork-title {
  font-size: var(--text-md);
  margin-bottom: 0.5rem;
}

.artwork-meta {
  font-family: var(--font-matrix);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin: 0;
}

.artwork-card.featured {
  border: 1px solid var(--secondary-color);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
}

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary-color);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-family: var(--font-matrix);
  font-size: var(--text-xs);
  font-weight: 700;
  z-index: 2;
}

/* Creative Process Section */
.creative-process {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.process-steps {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.process-step {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  padding: 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px var(--glow-color);
  border-color: var(--secondary-color);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1rem;
  text-shadow: 0 0 10px var(--glow-color);
  transition: all var(--transition-smooth);
}

.process-step:hover .step-number {
  opacity: 0.4;
  transform: scale(1.1);
}

.step-content {
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  text-shadow: 0 0 10px var(--glow-color);
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Oracle Art Personality */
.art-oracle .oracle-trigger {
  background: linear-gradient(135deg, var(--cyber-purple) 0%, var(--cyber-pink) 100%);
}

.art-pulse {
  border-color: var(--cyber-purple);
  box-shadow: 0 0 20px var(--cyber-purple-glow);
}

.oracle-chat.art-personality {
  border-color: var(--cyber-purple);
  box-shadow: 0 0 30px rgba(128, 0, 255, 0.3);
}

.oracle-chat.art-personality::before {
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.05) 0%, rgba(255, 0, 127, 0.05) 100%);
}

.art-style {
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.2) 0%, rgba(255, 0, 127, 0.2) 100%);
  border-left: 3px solid var(--cyber-purple);
}

/* Artwork Modal */
.artwork-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.artwork-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  max-width: 90%;
  max-height: 90vh;
  width: 1000px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 2fr 1fr;
  box-shadow: 0 0 50px var(--glow-color);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease-out;
}

.artwork-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-smooth);
  z-index: 2;
}

.modal-close:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
  box-shadow: 0 0 10px var(--glow-color);
}

.modal-image-container {
  height: 90vh;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
}

.modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.zoom-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary-color);
  background: rgba(0, 0, 0, 0.8);
  color: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-smooth);
}

.zoom-btn:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
  box-shadow: 0 0 10px var(--glow-color);
}

.modal-info {
  padding: 2rem;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  text-shadow: 0 0 15px var(--glow-color);
}

.modal-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-details {
  display: grid;
  gap: 1.5rem;
}

.detail-group {
  border-top: 1px solid rgba(128, 0, 255, 0.3);
  padding-top: 1.5rem;
}

.detail-label {
  font-family: var(--font-matrix);
  font-size: var(--text-sm);
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

.detail-value {
  color: var(--text-primary);
  margin: 0;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.detail-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(128, 0, 255, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  font-family: var(--font-matrix);
  font-size: var(--text-xs);
  color: var(--primary-color);
}

/* Magical-Cyberpunk Scrollbar */
.art-theme::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.art-theme::-webkit-scrollbar-track {
  background: rgba(20, 0, 40, 0.5);
  border-radius: var(--radius-full);
}

.art-theme::-webkit-scrollbar-thumb {
  background: var(--cyber-purple);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.art-theme::-webkit-scrollbar-thumb:hover {
  background: var(--cyber-pink);
  box-shadow: 0 0 10px var(--cyber-purple-glow);
}

.art-theme::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox Scrollbar */
.art-theme {
  scrollbar-width: thin;
  scrollbar-color: var(--cyber-purple) rgba(20, 0, 40, 0.5);
}

/* Modal Content Scrollbar */
.modal-info::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.modal-info::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.8);
}

.modal-info::-webkit-scrollbar-thumb {
  background: var(--cyber-purple);
  border-radius: var(--radius-full);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto;
  }
  
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .modal-image-container {
    height: auto;
    max-height: 50vh;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 1rem;
  }
  
  .art-hero {
    padding: 2rem 1rem;
  }
  
  .art-gallery {
    padding: 2rem 1rem;
  }
  
  .creative-process {
    padding: 2rem 1rem;
  }
  
  .gallery-filter {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .artwork-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .magical-background,
  .magical-particles,
  .magical-fog,
  .star {
    animation: none;
  }
  
  .artwork-card:hover,
  .process-step:hover {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .artwork-card,
  .process-step {
    border-width: 2px;
  }
  
  .main-nav {
    border-bottom-width: 2px;
  }
}