/* ROUGESWORLD - Profile Section (Matrix Clean Design) */

/* Profile Theme Variables */
.profile-theme {
  --primary-color: var(--matrix-green);
  --secondary-color: var(--matrix-dark-green);
  --accent-color: var(--matrix-light-green);
  --glow-color: var(--matrix-green-glow);
  --section-bg: linear-gradient(135deg, 
    rgba(0, 20, 0, 0.8) 0%, 
    rgba(0, 10, 0, 0.9) 50%, 
    rgba(0, 20, 0, 0.8) 100%);
}

/* Matrix Clean Background */
.matrix-clean-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(0, 255, 0, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 255, 0, 0.03) 0%, transparent 70%),
    linear-gradient(135deg, #000000 0%, #001100 50%, #000000 100%);
  overflow: hidden;
}

/* Digital Texture */
.digital-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(0, 255, 0, 0.3) 25%, rgba(0, 255, 0, 0.3) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, 0.3) 75%, rgba(0, 255, 0, 0.3) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0, 255, 0, 0.3) 25%, rgba(0, 255, 0, 0.3) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, 0.3) 75%, rgba(0, 255, 0, 0.3) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
}

/* Binary Rain */
.binary-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.binary-column {
  position: absolute;
  top: -20%;
  color: rgba(0, 255, 0, 0.15);
  font-family: var(--font-matrix);
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
  animation: binary-fall linear infinite;
}

@keyframes binary-fall {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(1000%);
  }
}

/* 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 */
.profile-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;
}

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

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

@keyframes matrix-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(--accent-color);
  margin: 0 0 2rem 0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
  letter-spacing: 2px;
}

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

/* Profile Avatar */
.profile-avatar {
  position: relative;
  z-index: 2;
}

.avatar-frame {
  position: relative;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
  transition: all var(--transition-smooth);
  overflow: hidden;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.avatar-frame:hover {
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.5);
}

.avatar-image {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.avatar-frame:hover .avatar-img {
  transform: scale(1.05);
}

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

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

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.avatar-frame:hover .avatar-overlay {
  opacity: 1;
}

/* Content Sections */
.profile-content {
  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;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

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

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

.card-header {
  margin-bottom: 1.5rem;
  position: relative;
}

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

.card-subtitle {
  font-family: var(--font-matrix);
  font-size: var(--text-sm);
  color: var(--accent-color);
  margin: 0;
}

.card-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-content p {
  margin-bottom: 1rem;
}

.card-content p:last-child {
  margin-bottom: 0;
}

.card-icon {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.3;
  transition: all var(--transition-smooth);
}

.content-card:hover .card-icon {
  opacity: 0.6;
  transform: scale(1.1);
}

/* Filosofia Digitale */
.filosofia-card {
  background: linear-gradient(135deg, rgba(0, 20, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.filosofia-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 10%, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Informazioni */
.informazioni-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 20, 0, 0.7) 100%);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-item {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  font-family: var(--font-matrix);
  color: var(--primary-color);
  margin-right: 1rem;
  min-width: 100px;
}

.info-value {
  color: var(--text-secondary);
}

/* Connessioni Galattiche */
.connessioni-card {
  background: linear-gradient(135deg, rgba(0, 20, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-smooth);
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.5);
}

.social-link:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 0 15px var(--glow-color);
}

.social-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Progetti Futuri */
.progetti-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 20, 0, 0.7) 100%);
}

.progetti-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.progetto-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.progetto-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.progetto-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--primary-color);
  margin: 0 0 0.5rem 0;
}

.progetto-description {
  color: var(--text-secondary);
  margin: 0;
}

.progetto-status {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  font-family: var(--font-matrix);
  font-size: var(--text-xs);
  color: var(--primary-color);
}

/* Oracle Profile Personality */
.profile-oracle .oracle-trigger {
  background: linear-gradient(135deg, var(--matrix-green) 0%, var(--matrix-dark-green) 100%);
}

.profile-pulse {
  border-color: var(--matrix-green);
  box-shadow: 0 0 20px var(--matrix-green-glow);
}

.oracle-chat.profile-personality {
  border-color: var(--matrix-green);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

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

.profile-style {
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 100, 0, 0.1) 100%);
  border-left: 3px solid var(--matrix-green);
}

/* Matrix Clean Scrollbar */
.profile-theme::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

.profile-theme::-webkit-scrollbar-thumb {
  background: var(--matrix-green-dim);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.profile-theme::-webkit-scrollbar-thumb:hover {
  background: var(--matrix-green);
  box-shadow: 0 0 10px var(--matrix-green-glow);
}

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

/* Firefox Scrollbar */
.profile-theme {
  scrollbar-width: thin;
  scrollbar-color: var(--matrix-green-dim) rgba(0, 20, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 1rem;
  }
  
  .profile-hero {
    padding: 2rem 1rem;
  }
  
  .profile-content {
    padding: 2rem 1rem;
  }
  
  .avatar-frame {
    width: 250px;
    height: 250px;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-link {
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .avatar-frame {
    width: 200px;
    height: 200px;
  }
  
  .info-item {
    flex-direction: column;
  }
  
  .info-label {
    margin-bottom: 0.5rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .binary-column {
    animation: none;
  }
  
  .content-card:hover {
    transform: none;
  }
}

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