/* ============================================
   PACIFIC ESPORTS - RESPONSIVE STYLESHEET
   Breakpoints: Tablet (< 1024px), Mobile (< 768px)
   Menu mobile: Design elegante e professionale
   ============================================ */

/* ---------- Tablet (Max 1024px) ---------- */
@media screen and (max-width: 1024px) {
  .section-title {
    font-size: 2.4rem;
  }
  .hero-title {
    font-size: 3.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    max-width: 420px;
  }
  .container {
    padding: 0 32px;
  }
  .section-padding {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 48px;
  }
  .navbar.scrolled .nav-container {
    padding: 0 32px;
  }
  .nav-menu {
    gap: 4px;
  }
  .nav-link {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .nav-cta {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .logo-img {
    height: 34px;
  }
  .navbar.scrolled .logo-img {
    height: 28px;
  }
  .hero-content {
    padding: 0 32px;
    padding-top: 80px;
  }
  .about-grid {
    gap: 40px;
  }
  .about-card {
    padding: 28px;
  }
  .about-logo {
    max-width: 280px;
  }
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
  }
  .contact-cards {
    gap: 20px;
  }
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
  }
  .chatbot-widget {
    bottom: 20px;
    right: 20px;
  }
  .chatbot-window {
    width: 360px;
    max-height: 500px;
  }
}

/* ============================================
   MOBILE (Max 768px)
   ============================================ */
@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-description {
    font-size: 0.95rem;
  }
  .section-padding {
    padding: 64px 0;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .section-tag {
    font-size: 0.7rem;
    padding: 5px 14px;
    margin-bottom: 16px;
  }
  .container {
    padding: 0 20px;
  }

  /* ---------- NAVBAR ---------- */
  .navbar {
    padding: 14px 0;
  }
  .navbar.scrolled {
    padding: 8px 0;
  }
  .navbar.scrolled .nav-container {
    padding: 0 20px;
  }
  .logo-img {
    height: 32px;
  }
  .navbar.scrolled .logo-img {
    height: 28px;
  }
  .nav-cta {
    display: none;
  }

  /* ---------- TOGGLE BUTTON ---------- */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(111, 187, 254, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(111, 187, 254, 0.2);
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
    padding: 0;
    transition: all 0.3s ease;
  }

  .nav-toggle:hover {
    background: rgba(111, 187, 254, 0.15);
    border-color: rgba(111, 187, 254, 0.35);
  }

  .nav-toggle.active {
    background: rgba(111, 187, 254, 0.18);
    border-color: rgba(111, 187, 254, 0.5);
    box-shadow: 0 0 20px rgba(111, 187, 254, 0.2);
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* ---------- MENU OVERLAY ---------- */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* ---------- MENU SLIDE ---------- */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #11161e 0%, #0d1117 100%);
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 50px 28px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-left: 1px solid rgba(111, 187, 254, 0.12);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  /* Linea decorativa in alto */
  .nav-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(111, 187, 254, 0.3),
      transparent
    );
  }

  /* ---------- LINK DEL MENU ---------- */
  .nav-menu .nav-link,
  .nav-menu li a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 14px 18px !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    color: #c0c6cf !important;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    letter-spacing: 0.01em;
  }

  /* Icona piccola prima del testo */
  .nav-menu .nav-link::before {
    content: "";
    width: 4px;
    height: 4px;
    background: rgba(111, 187, 254, 0.4);
    border-radius: 50%;
    transition: all 0.25s ease;
    flex-shrink: 0;
  }

  .nav-menu .nav-link:hover {
    background: rgba(111, 187, 254, 0.08) !important;
    color: #ffffff !important;
    padding-left: 22px !important;
  }

  .nav-menu .nav-link:hover::before {
    background: #6fbbfe;
    box-shadow: 0 0 8px rgba(111, 187, 254, 0.5);
  }

  .nav-menu .nav-link.active {
    background: rgba(111, 187, 254, 0.1) !important;
    color: #6fbbfe !important;
    font-weight: 600 !important;
  }

  .nav-menu .nav-link.active::before {
    background: #6fbbfe;
    box-shadow: 0 0 12px rgba(111, 187, 254, 0.6);
    width: 6px;
    height: 6px;
  }

  .nav-link.active::after {
    display: none;
  }

  /* ---------- SEPARATORE NEL MENU ---------- */
  .nav-menu .nav-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px 18px;
  }

  /* ---------- HERO ---------- */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: flex-end;
    padding-bottom: 70px;
  }
  .hero-bg-img {
    object-position: 30% center;
    transform: scale(1.1);
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(10, 12, 16, 0.2) 0%,
      rgba(10, 12, 16, 0.15) 35%,
      rgba(10, 12, 16, 0.85) 70%,
      rgba(10, 12, 16, 0.95) 100%
    );
  }
  .hero-content {
    padding: 0 20px;
    padding-bottom: 10px;
    text-align: center;
  }
  .hero-title {
    font-size: 2.4rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.5;
  }

  /* ---------- ABOUT ---------- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-card {
    padding: 24px;
  }
  .about-heading {
    font-size: 1.3rem;
  }
  .about-text {
    font-size: 0.9rem;
  }
  .achievement {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  .about-visual {
    order: -1;
    padding: 20px;
  }
  .about-logo {
    max-width: 180px;
  }

  /* ---------- ROSTER ---------- */
  .roster-page {
    padding-top: 110px;
  }
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 400px;
  }
  .player-card-inner {
    padding: 28px 14px 24px;
  }
  .avatar-placeholder {
    width: 65px;
    height: 65px;
  }
  .avatar-letter {
    font-size: 2rem;
  }
  .player-name {
    font-size: 1rem;
  }
  .player-role {
    font-size: 0.75rem;
  }
  .player-rank {
    font-size: 0.6rem;
    padding: 3px 8px;
    top: -6px;
    right: -4px;
  }

  /* ---------- CONTACT ---------- */
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
  }
  .contact-card {
    padding: 28px 20px;
  }
  .contact-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  .contact-card-title {
    font-size: 1.1rem;
  }

  /* ---------- FOOTER ---------- */
  .footer {
    padding-top: 40px;
    padding-bottom: 100px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-tagline {
    max-width: 100%;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-links ul,
  .footer-social-links ul {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-legal {
    justify-content: center;
  }

  /* ---------- CHATBOT ---------- */
  .chatbot-widget {
    bottom: 16px;
    right: 16px;
    z-index: 997;
  }
  .chatbot-toggle {
    width: 52px;
    height: 52px;
  }
  .chatbot-toggle-icon {
    width: 26px;
    height: 26px;
  }
  .chatbot-window {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    height: 85dvh;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
  }
  .chatbot-window.active {
    transform: translateY(0);
    opacity: 1;
  }
  .chatbot-window::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    z-index: 10;
  }
  .chatbot-header {
    padding: 20px 16px 12px;
    border-radius: 16px 16px 0 0;
  }
  .chatbot-header-icon {
    width: 32px;
    height: 32px;
  }
  .chatbot-header-title {
    font-size: 0.85rem;
  }
  .chatbot-messages {
    max-height: none;
    flex: 1;
    padding: 12px;
  }
  .chatbot-quick-actions {
    padding: 10px 12px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .quick-action-btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
  .chatbot-input-area {
    padding: 10px 12px;
  }
  .chatbot-input {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .chatbot-send {
    width: 38px;
    height: 38px;
  }
}

/* ============================================
   SMALL MOBILE (Max 480px)
   ============================================ */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .hero-bg-img {
    object-position: 35% center;
    transform: scale(1.15);
  }
  .hero {
    padding-bottom: 56px;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
  .roster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .player-card-inner {
    padding: 24px 10px 20px;
  }
  .avatar-placeholder {
    width: 55px;
    height: 55px;
  }
  .avatar-letter {
    font-size: 1.6rem;
  }
  .player-name {
    font-size: 0.9rem;
  }
  .player-role {
    font-size: 0.7rem;
  }
  .player-rank {
    font-size: 0.55rem;
    padding: 2px 7px;
    top: -4px;
    right: -2px;
  }
  .about-logo {
    max-width: 150px;
  }

  /* Menu più stretto su schermi piccoli */
  .nav-menu {
    width: 85%;
    max-width: 280px;
    padding: 45px 20px 25px;
  }
  .nav-menu .nav-link {
    padding: 13px 16px !important;
    font-size: 1rem !important;
  }

  .chatbot-widget {
    bottom: 12px;
    right: 12px;
  }
  .chatbot-toggle {
    width: 48px;
    height: 48px;
  }
  .chatbot-toggle-icon {
    width: 24px;
    height: 24px;
  }
  .chatbot-window {
    height: 88vh;
    height: 88dvh;
  }
  .quick-action-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
  .footer-socials {
    gap: 8px;
  }
  .footer-social-link {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .footer {
    padding-bottom: 90px;
  }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-bottom: 30px;
  }
  .hero-content {
    padding-top: 110px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .nav-menu {
    padding: 35px 20px 20px;
    width: 55%;
    max-width: 280px;
  }
  .nav-menu .nav-link {
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
  }
  .chatbot-window {
    height: 90vh;
    width: 65%;
    max-width: 380px;
    right: 0;
    left: auto;
    border-radius: 16px 0 0 16px;
  }
  .chatbot-window::before {
    display: none;
  }
  .chatbot-header {
    border-radius: 16px 0 0 0;
    padding-top: 12px;
  }

  .sponsor-minimal {
    padding: 40px 0 60px;
  }

  .sponsor-minimal-content {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================
   LARGE SCREENS (Min 1400px)
   ============================================ */
@media screen and (min-width: 1400px) {
  .hero-title {
    font-size: 6rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
    max-width: 560px;
  }
  .chatbot-window {
    width: 420px;
    max-height: 600px;
  }
  .container {
    max-width: 1300px;
  }
}