/* Responsive CSS for RED SKULL Guild Website */

/* Large Screens (1200px and below) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .highlights-grid,
    .leaders-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .discord-container {
        flex-direction: column;
    }
    
    .discord-info {
        flex: 0 0 100%;
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .discord-widget {
        flex: 0 0 100%;
    }
    
    .discord-widget iframe {
        width: 100%;
    }
}

/* Medium Screens (992px and below) */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .main-title {
        font-size: 6rem;
    }
    
    .slogan {
        font-size: 2rem;
    }
    
    .highlights-grid,
    .leaders-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        width: 100%;
    }
    
    .day {
        font-size: 2.5rem;
        margin-right: 1rem;
    }
    
    .event-action {
        padding: 1rem 2rem 2rem;
    }
}

/* Small Screens (768px and below) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .main-title {
        font-size: 5rem;
    }
    
    .slogan {
        font-size: 1.8rem;
    }
    
    .menu-toggle {
        display: block;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        position: relative;
        z-index: 1100;
        margin-left: auto;
    }
    
    .sword-icon {
        display: block;
        width: 30px;
        height: 3px;
        background-color: var(--color-red-primary);
        position: relative;
        transition: all var(--transition-medium);
    }
    
    .sword-icon::before,
    .sword-icon::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 3px;
        background-color: var(--color-red-primary);
        transition: all var(--transition-medium);
    }
    
    .sword-icon::before {
        top: -10px;
    }
    
    .sword-icon::after {
        bottom: -10px;
    }
    
    .menu-open .sword-icon {
        background-color: transparent;
    }
    
    .menu-open .sword-icon::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .menu-open .sword-icon::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-black);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        z-index: 1000;
        transition: right var(--transition-medium);
        box-shadow: var(--shadow-large);
        padding: 100px 3rem 0 3rem;
    }
    
    .menu-open .nav-links {
        right: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.8rem;
        display: block;
        padding: 1rem 1.5rem;
        background: var(--gradient-dark);
        color: var(--color-text);
        border: 1px solid var(--color-red-primary);
        border-radius: 5px;
        text-decoration: none;
        transition: background var(--transition-medium), transform var(--transition-medium), box-shadow var(--transition-medium);
    }
    
    .nav-links a:hover {
        background: var(--gradient-red);
        transform: translateX(5px);
        box-shadow: 0 0 10px rgba(196, 18, 18, 0.5);
        color: white;
    }
    
    .nav-links a::after {
        display: none;
    }

    .nav-group {
        flex-direction: column;
        width: 100%;
    }

    .nav-divider {
        width: 80%;
        height: 1px;
        margin: 1rem 0;
    }

    
    .highlights-grid,
    .leaders-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .leader-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .testimonials-slider {
        padding: 0 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-content p {
        font-size: 1.6rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-title::after {
        margin: 1rem auto 0;
    }
}

/* Extra Small Screens (576px and below) */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .main-title {
        font-size: 4rem;
        letter-spacing: 2px;
    }
    
    .slogan {
        font-size: 1.6rem;
    }
    
    .cta-button {
        font-size: 1.6rem;
        padding: 1.2rem 3rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 50%;
        margin-bottom: 2rem;
    }
    
    .testimonial-author {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .author-avatar {
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    .author-info {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    .author-info h3, .author-info p {
        text-align: center !important;
        width: 100%;
    }
    
    .event-details h3 {
        font-size: 1.8rem;
    }
    
    .discord-stats {
        flex-direction: column;
    }
    
    .discord-stats .stat {
        margin-bottom: 2rem;
    }
    
    .nav-links {
        width: 100%;
    }
}

/* Height-based Media Queries */
@media screen and (max-height: 700px) {
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .logo-animated img {
        width: 150px;
    }
    
    .main-title {
        font-size: 5rem;
    }
    
    .slogan {
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    #main-header,
    #audio-control,
    #war-mode-toggle,
    .cta-container,
    .view-more-container,
    #main-footer,
    .scroll-indicator {
        display: none;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .section-title,
    .highlight-content h3,
    .leader-info h3,
    .event-details h3 {
        color: black;
    }
    
    .highlight-card,
    .leader-card,
    .event-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .highlight-image,
    .leader-avatar {
        border: 1px solid #ccc;
    }
    
    .progress-fill,
    .fury-fill,
    .stat-fill {
        background: #ccc;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* Desktop Screens (993px and above) */
@media screen and (min-width: 993px) {
    .header-container {
        justify-content: center;
        gap: 4rem;
    }

    .main-nav {
        flex: none; /* Remover flex-grow em desktop para não ocupar espaço extra */
        justify-content: center;
    }
/*
    .nav-links {
         Ajustar espaçamento dos links se necessário 
    }
         */
}

.wiki-btn a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--gradient-red);
    color: var(--color-text);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--color-red-secondary);
    border-radius: 3px;
    box-shadow: var(--shadow-medium), 0 0 10px rgba(196, 18, 18, 0.5);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1.2rem;
}

.wiki-btn a::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;
}

.wiki-btn a:hover::before {
    left: 100%;
}

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