/* style.css - Aaron Gaming Zone - Design complet - CSS principal responsive */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #1a0033, #2d004d, #4a0080, #6600cc);
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

/* HEADER */
.header-main {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #6600cc;
  position: relative;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar {
  height: 80px;
  width: 80px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s;
}

.avatar:hover {
  transform: scale(1.1) rotate(5deg);
}

.header-main h1 {
  font-size: 2.8rem;
  background: linear-gradient(45deg, #ff6b35, #f7931e, #ffcc02);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  font-weight: 900;
}

/* AUTH SECTION */
.auth-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #6600cc, #8533ff);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn:hover {
  background: linear-gradient(45deg, #8533ff, #6600cc);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 0, 204, 0.4);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 15px;
  border-radius: 25px;
  border: 2px solid #00d4ff;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logout-btn {
  background: transparent;
  border: 1px solid #666;
  color: #666;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
}

.logout-btn:hover {
  border-color: #ff6b35;
  color: #ff6b35;
}

/* SECTION LIVE YOUTUBE */
.live-section {
  margin: 30px 20px;
  background: rgba(26, 0, 51, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid #ff0000;
}

.live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.live-header h2 {
  font-size: 1.8rem;
  color: #ff0000;
  font-weight: 900;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: #ff0000;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.live-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.video-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: #000;
}

.live-video {
  width: 100%;
  height: 300px;
  border: none;
}

.no-live-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.no-live-content {
  text-align: center;
  padding: 20px;
}

.no-live-content h3 {
  color: #00d4ff;
  margin-bottom: 10px;
}

.highlight-categories {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.highlight-btn {
  background: rgba(102, 0, 204, 0.3);
  border: 2px solid #6600cc;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.highlight-btn.active,
.highlight-btn:hover {
  background: #6600cc;
  border-color: #00d4ff;
}

.live-info {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
}

.live-info h3 {
  color: #00d4ff;
  margin-bottom: 15px;
}

.live-stats {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff6b35;
}

.stat-label {
  font-size: 0.8rem;
  color: #aaa;
}

/* SECTIONS CARROUSEL */
.carousel-section {
  padding: 40px 20px;
}

.carousel-section h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #00d4ff;
  text-align: left;
  padding-left: 10px;
  font-weight: 700;
}

.carousel-container {
  position: relative;
  padding: 0 60px;
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* CARDS GÉNÉRIQUES */
.card {
  min-width: 280px;
  background: linear-gradient(145deg, #2a0040, #1a0030);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  border: 2px solid #6600cc;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(102, 0, 204, 0.4);
  border-color: #00d4ff;
}

/* CARDS JOUEURS */
.player-card {
  height: 380px;
}

.rank-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  z-index: 5;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
}

.rank-badge.gold {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
}

.rank-badge.silver {
  background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
  color: #000;
}

.rank-badge.coming {
  background: linear-gradient(45deg, #666, #999);
  color: #fff;
}

.player-image-container {
  position: relative;
  height: 180px;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.brawler-name {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #00d4ff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
}

.card-content {
  padding: 20px;
}

.player-info {
  margin-bottom: 15px;
}

.player-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 5px;
}

.player-real-name {
  font-size: 0.9rem;
  color: #aaa;
  font-style: italic;
}

.stats-grid {
  margin-bottom: 15px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  color: #ccc;
  font-weight: 600;
}

.stars {
  color: #ffcc02;
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.player-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trophies {
  display: flex;
  align-items: center;
  gap: 5px;
}

.trophy-count {
  font-weight: 900;
  color: #ff6b35;
  font-size: 1rem;
}

.country-lang {
  display: flex;
  gap: 5px;
}

.flag, .language {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
}

/* CARDS "COMING SOON" */
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.7;
  border-style: dashed;
}

.coming-soon-content {
  padding: 20px;
}

.mystery-avatar {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.unlock-requirement {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #ff6b35;
}

/* CARDS ÉVÉNEMENTS */
.event-card {
  height: 320px;
}

.event-description {
  margin-bottom: 15px;
}

.event-description p {
  color: #ccc;
  margin-bottom: 10px;
}

.event-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-stats span {
  font-size: 0.8rem;
  color: #aaa;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.difficulty {
  color: #00d4ff;
  font-size: 0.8rem;
}

.reward {
  color: #ffd700;
  font-weight: 900;
  margin-left: 10px;
}

.championship {
  border-color: #ffd700;
  background: linear-gradient(145deg, #4d3300, #331f00);
}

/* CARDS INSCRIPTION */
.signup-card {
  height: 280px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.signup-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.mode-icon {
  width: 40px;
  height: 40px;
}

.signup-header h3 {
  color: #00d4ff;
  font-size: 1.2rem;
}

.next-event {
  text-align: center;
  margin-bottom: 20px;
}

.event-date {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: #ff6b35;
  margin-bottom: 5px;
}

.event-time {
  color: #aaa;
  font-size: 0.9rem;
}

.signup-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.signup-stats .count {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: #00d4ff;
}

.signup-stats .label {
  font-size: 0.8rem;
  color: #aaa;
}

.signup-btn {
  background: linear-gradient(45deg, #00d4ff, #0099cc);
  border: none;
  padding: 12px;
  border-radius: 8px;
  color: #000;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s;
}

.signup-btn:hover {
  background: linear-gradient(45deg, #0099cc, #00d4ff);
  transform: translateY(-2px);
}

.signup-btn.premium {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
}

/* NAVIGATION ARROWS */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #6600cc;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.nav-arrow:hover {
  background: #6600cc;
  border-color: #00d4ff;
  transform: translateY(-50%) scale(1.1);
}

.nav-left {
  left: 5px;
}

.nav-right {
  right: 5px;
}

/* OPTIONS MENU */
.options-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.option-btn {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #6600cc;
  color: white;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.2rem;
  backdrop-filter: blur(5px);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-btn:hover {
  background: #6600cc;
  border-color: #00d4ff;
  transform: scale(1.1);
}

/* MODAL CALENDRIER */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: linear-gradient(145deg, #2a0040, #1a0030);
  border: 2px solid #6600cc;
  border-radius: 20px;
  padding: 30px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  color: #00d4ff;
  font-size: 1.8rem;
}

.close-modal {
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

.close-modal:hover {
  color: #ff6b35;
}

.calendar-modal {
  width: 800px;
}

/* FOOTER */
footer {
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  margin-top: 60px;
  border-top: 1px solid #333;
}

footer p {
  color: #aaa;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.social-link:hover {
  color: #00d4ff;
}

/* UTILITY CLASSES */
.hidden {
  display: none !important;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .live-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .carousel-container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .header-main h1 {
    font-size: 2rem;
  }
  
  .live-section {
    margin: 20px 10px;
    padding: 20px;
  }
  
  .live-video {
    height: 200px;
  }
  
  .card {
    min-width: 250px;
  }
  
  .player-card {
    height: 350px;
  }
  
  .carousel-container {
    padding: 0 20px;
  }
  
  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .options-menu {
    bottom: 15px;
    right: 15px;
    flex-direction: column;
  }
  
  .option-btn {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .modal-content {
    margin: 20px;
    padding: 20px;
  }
  
  .calendar-modal {
    width: auto;
  }
}

@media (max-width: 480px) {
  .header-main {
    padding: 15px;
  }
  
  .avatar {
    width: 60px;
    height: 60px;
  }
  
  .header-main h1 {
    font-size: 1.5rem;
  }
  
  .live-section {
    margin: 15px 5px;
    padding: 15px;
  }
  
  .live-header h2 {
    font-size: 1.3rem;
  }
  
  .card {
    min-width: 220px;
  }
  
  .player-card {
    height: 320px;
  }
  
  .highlight-categories {
    flex-direction: column;
    gap: 8px;
  }
  
  .highlight-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* À ajouter dans login-style.css ET style.css */
@media (orientation: portrait) and (max-width: 1024px) {
  .portrait-warning {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #1a0033, #4a0080);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
    text-align: center;
  }
  
  .main-content { display: none !important; }
}