/* UX Improvements for RED SKULL Guild Website */

/* ===== Sticky Header ===== */
#main-header.sticky {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

/* ===== Tagline ===== */
.tagline-container {
    display: flex;
    align-items: center;
}

.logo-tagline {
    margin-left: 15px;
    border-left: 2px solid var(--color-red-primary);
    padding-left: 15px;
    line-height: 1.2;
}

.tagline-primary {
    font-weight: 700;
    color: var(--color-red-primary);
    font-size: 1.4rem;
    display: block;
}

.tagline-secondary {
    color: var(--color-text);
    font-size: 1.2rem;
}

/* ===== Improved Typography ===== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    
}

h1 {
    font-size: 4.8rem;
    font-weight: 800;
}

h2 {
    font-size: 3.6rem;
    font-weight: 700;
}

h3 {
    font-size: 2.4rem;
    font-weight: 700;
}

p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 70ch;
}

.text-highlight {
    font-weight: 700;
    color: var(--color-red-primary);
}

/* ===== Enhanced Cards ===== */
.card {
    background-color: var(--color-dark-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    border: 1px solid rgba(196, 18, 18, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large), 0 0 15px rgba(196, 18, 18, 0.3);
    border-color: rgba(196, 18, 18, 0.3);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(196, 18, 18, 0.1);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(196, 18, 18, 0.1);
}

/* ===== Improved Buttons ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-red);
    color: white;
    border: 1px solid var(--color-red-secondary);
    box-shadow: var(--shadow-medium), 0 0 10px rgba(196, 18, 18, 0.5);
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large), 0 0 15px rgba(196, 18, 18, 0.7);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-red-primary);
    border: 1px solid var(--color-red-primary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: rgba(196, 18, 18, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.5rem 4rem;
    font-size: 1.8rem;
}

/* ===== Improved Navigation ===== */
.nav-group {
    display: flex;
    align-items: center;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background-color: var(--color-red-secondary);
    margin: 0 15px;
}

/* ===== Animated Progress Bar ===== */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===== Improved Form Elements ===== */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--color-medium-gray);
    border: 1px solid var(--color-light-gray);
    border-radius: 4px;
    color: var(--color-text);
    transition: all var(--transition-medium);
}

.form-control:focus {
    border-color: var(--color-red-primary);
    box-shadow: 0 0 0 3px rgba(196, 18, 18, 0.2);
    outline: none;
}

.form-feedback {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 1.2rem;
    color: var(--color-red-bright);
}

/* ===== Testimonial Improvements ===== */
/* Comentado para não interferir no carrossel */
/*
.testimonial-card {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-dark-gray);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-medium);
    border: 1px solid rgba(196, 18, 18, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large), 0 0 15px rgba(196, 18, 18, 0.3);
}
*/

.testimonial-content {
    position: relative;
    padding: 2rem;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 6rem;
    color: rgba(196, 18, 18, 0.2);
    font-family: serif;
    line-height: 1;
}

/* ===== Accessibility Improvements ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-red-primary);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ===== Micro-interactions ===== */
.hover-scale {
    transition: transform var(--transition-medium);
}

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

.hover-glow {
    transition: box-shadow var(--transition-medium);
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(196, 18, 18, 0.5);
}

/* ===== Focus States ===== */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(196, 18, 18, 0.5);
    outline-offset: 2px;
}

/* ===== Improved CTA ===== */
.cta-primary {
    background: var(--gradient-red);
    color: white;
    font-size: 1.8rem;
    padding: 1.5rem 4rem;
    border-radius: 4px;
    box-shadow: var(--shadow-medium), 0 0 15px rgba(196, 18, 18, 0.5);
    transition: all var(--transition-medium);
    display: inline-block;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s;
    z-index: 1;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large), 0 0 20px rgba(196, 18, 18, 0.7);
}

/* ===== Social Proof ===== */
.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-value {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--color-red-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.6rem;
    color: var(--color-text);
    text-transform: uppercase;
}

/* ===== Streamers Section Improvements ===== */
#streamers {
  background: var(--color-black);
}

.streamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.streamer-card {
  background: rgba(30, 20, 30, 0.98);
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 #ff003c22, 0 2px 8px 0 #0005;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(.23,1.02,.32,1), box-shadow 0.35s;
  border: 2px solid transparent;
  z-index: 1;
}
.streamer-card:hover {
  transform: scale(1.035) translateY(-6px) rotate(-1deg);
  box-shadow: 0 8px 40px 0 #ff003c44, 0 2px 16px 0 #0007;
  border-color: #ff0000;
}

.streamer-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}
.streamer-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ff0000;
  box-shadow: 0 0 12px #ff003c55;
  background: #18141a;
}
.streamer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s, transform 0.3s;
}
.streamer-card:hover .streamer-avatar img {
  filter: brightness(1.13) drop-shadow(0 0 8px #ff003c88);
  transform: scale(1.09) rotate(-2deg);
}

.live-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(90deg, #ff0000, #ff7b00);
  color: #fff;
  font-weight: bold;
  padding: 0.18em 0.8em;
  border-radius: 1em;
  font-size: 0.85em;
  box-shadow: 0 0 8px 2px #ff003c80;
  letter-spacing: 1px;
  animation: badgePulse 1.1s infinite alternate;
}
@keyframes badgePulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.4); }
}

.streamer-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  transition: color 0.3s, text-shadow 0.3s;
}
.streamer-card:hover .streamer-info h3 {
  color: #ff0000;
  text-shadow: 0 2px 8px #ff003c55;
  letter-spacing: 1px;
}
.streamer-role {
  font-size: 1.1rem;
  color: #ff7b00;
  font-weight: 500;
}

.stream-preview {
  position: relative;
  width: 100%;
  height: 180px; /* Reduzido de 180px para 140px */
  overflow: hidden;
  border-radius: 12px;
  margin: 1.2rem 0 0.7rem 0; /* Mais espaçamento acima e abaixo */
  box-shadow: 0 2px 16px #ff003c22;
  padding: 1rem; /* Espaço interno para afastar a imagem das bordas */
  background: #18141a;
}
.stream-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Para não cortar a imagem, dando mais respiro */
  border-radius: 8px;
  background: #18141a;
}

.stream-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.streamer-card:hover .stream-overlay {
  background: rgba(255,0,60,0.18);
}
.play-button {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.streamer-card:hover .play-button {
  opacity: 1;
  pointer-events: auto;
}
.play-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(120deg, #ff0000 60%, #0f0f0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 16px 2px #ff000080;
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.play-button::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 7px;
}
.play-button:hover {
  box-shadow: 0 0 32px 8px #ff003cbb;
}

.stream-details {
  padding: 0 1.5rem 1.2rem 1.5rem;
}
.stream-details h4 {
  font-size: 1.9rem;
  color: #ff0000;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.stream-details p {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.stream-meta {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
  color: #f0f0f0;
  font-weight: 700;
}
.viewers {
  color: #ff0000;
  font-size: 1.5rem;
  font-weight: 700;
}

.watch-button {
  display: block;
  width: 90%;
  max-width: 260px;
  margin: 1.2rem auto 1rem auto;
  padding: 0.9rem 0;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  font-size: 1.1rem;
  background: var(--gradient-red);
  color: white;
  border: 1px solid var(--color-red-secondary);
  box-shadow: var(--shadow-medium), 0 0 10px rgba(196, 18, 18, 0.5);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  letter-spacing: 1px;
  text-decoration: none;
}
.watch-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s;
  z-index: -1;
}
.watch-button:hover::before {
  left: 100%;
}
.watch-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-large), 0 0 15px rgba(196, 18, 18, 0.7);
  color: white;
  background: var(--gradient-red);
}

/* Socials do streamer */
.streamer-socials {
  display: flex;
  justify-content: center !important;
  align-items: center;
  gap: 1.2rem;
  margin: 1.1rem 0 0.7rem 0;
}
.streamer-socials .social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #18141a;
  box-shadow: 0 0 8px #ff003c33;
  border: 2px solid #ff0000;
  transition: box-shadow 0.3s, border 0.3s;
}
.streamer-socials .social-link:hover {
  box-shadow: 0 0 16px #ff003c99;
  border: 2px solid #ff7b00;
}

/* ===== Social Media Section Improvements ===== */
#social-media {
  background: #19181b;
}

.social-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
  margin-top: 2.5rem;
}
.social-card {
  background: rgba(30, 20, 30, 0.98);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 #ff003c22, 0 2px 8px 0 #0005;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s cubic-bezier(.23,1.02,.32,1), box-shadow 0.35s, border 0.3s;
  border: 2px solid transparent;
  z-index: 1;
}
.social-card:hover {
  transform: scale(1.045) translateY(-6px) rotate(-1deg);
  box-shadow: 0 8px 32px 0 #ff003c44, 0 2px 16px 0 #0007;
  border-color: #ff0000;
}
.social-card .social-icon {
  width: 54px;
  height: 54px;
  margin: 1.5rem auto 1rem auto;
  border-radius: 50%;
  background: #18141a;
  box-shadow: 0 0 12px #ff003c55;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ff0000;
  transition: box-shadow 0.3s, border 0.3s;
}
.social-card:hover .social-icon {
  box-shadow: 0 0 24px #ff003c99;
  border: 3px solid #ff7b00;
}
.social-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ff0000;
  margin-bottom: 0.2rem;
  text-align: center;
  letter-spacing: 1px;
}
.social-card p {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
  text-align: center;
}
.social-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}
.stat {
  text-align: center;
}
.stat-value {
  color: #ff7b00;
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}
.stat-label {
  color: #fff;
  font-size: 0.95rem;
  opacity: 0.8;
}
.social-button {
  display: block;
  width: 80%;
  min-width: unset;
  max-width: 260px;
  margin: 1.2rem auto 1.2rem auto;
  padding: 0.8rem 0;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  font-size: 1.1rem;
  background: var(--gradient-red);
  color: white;
  border: 1px solid var(--color-red-secondary);
  box-shadow: var(--shadow-medium), 0 0 10px rgba(196, 18, 18, 0.5);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  letter-spacing: 1px;
}
.social-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s;
  z-index: -1;
}
.social-button:hover::before {
  left: 100%;
}
.social-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-large), 0 0 15px rgba(196, 18, 18, 0.7);
  color: white;
  background: var(--gradient-red);
}

/* Efeito de brilho animado nos ícones das redes sociais */
.social-card .social-icon img {
  filter: drop-shadow(0 0 8px #ff003c88);
  transition: filter 0.3s;
}
.social-card:hover .social-icon img {
  filter: drop-shadow(0 0 16px #ff7b00cc) brightness(1.2);
}

@media (max-width: 700px) {
  .streamers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .streamer-card {
    border-radius: 12px;
  }
  .streamer-header, .stream-details {
    padding: 1rem;
  }
  .stream-preview {
    height: 90px;
    padding: 0.3rem;
  }
  .social-media-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .social-card {
    border-radius: 10px;
  }
}
