/* Concan Belém 2018 - CSS Responsivo */
/* Adaptação para dispositivos móveis e tablets */

/* Tablet */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 1rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat {
        padding: 1rem;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-nav {
        flex-direction: column;
        align-items: center;
    }

    .day-btn {
        width: 100%;
        max-width: 200px;
    }

    .anais-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .speakers-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .links-grid {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(74, 144, 226, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 2px solid #FFD700;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .conference-elements {
        display: none; /* Remove na versão mobile */
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .schedule-nav {
        gap: 0.5rem;
    }

    .day-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .schedule-content {
        padding: 1.5rem;
    }

    .anais-list {
        gap: 1.5rem;
    }

    .anais-item {
        padding: 1.5rem;
    }

    .anais-header h3 {
        font-size: 1.2rem;
    }

    .anais-meta {
        flex-direction: column;
        gap: 0.8rem;
    }

    .anais-actions {
        flex-direction: column;
    }

    .anais-btn {
        width: 100%;
        text-align: center;
    }

    .speakers-grid {
        gap: 1.5rem;
    }

    .speaker-card {
        margin: 0 -0.5rem;
    }

    .speaker-info {
        padding: 1rem;
    }

    .speaker-info h3 {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-overlay {
        padding: 1.5rem 1rem 0.8rem;
    }

    .gallery-overlay h4 {
        font-size: 1.1rem;
    }

    .certificates-grid {
        gap: 1rem;
    }

    .certificate-card {
        padding: 2rem 1.5rem;
    }

    .certificate-card i {
        font-size: 2.5rem;
    }

    .about-text h2,
    .schedule-section h2,
    .anais-section h2,
    .speakers-section h2,
    .gallery-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-gallery {
        padding: 1.5rem;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .contact-link {
        justify-content: center;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    .anais-item {
        padding: 1rem;
    }

    .speaker-info h3 {
        font-size: 1.1rem;
    }

    .gallery-overlay h4 {
        font-size: 1rem;
    }

    .certificate-card {
        padding: 1.5rem 1rem;
    }

    .certificate-card h3 {
        font-size: 1.2rem;
    }

    .about-content {
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        gap: 2rem;
    }

    .contact-form {
        padding: 1rem 0;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .schedule-section h2,
    .anais-section h2,
    .speakers-section h2,
    .gallery-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 3.5rem;
    }

    .info-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .speakers-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .certificates-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .conference-elements .element {
        font-size: 5rem;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a:hover::before {
        width: 0;
    }

    .info-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .anais-item:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .speaker-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .gallery-item:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .certificate-card:hover {
        transform: none;
    }

    .authority-link:hover {
        background: #FFFFFF;
        border-color: #FFD700;
        transform: none;
    }

    .cta-button:hover {
        transform: none;
    }

    .day-btn:hover {
        transform: none;
    }

    .anais-btn:hover {
        transform: none;
    }

    .certificate-btn:hover {
        transform: none;
    }

    .submit-button:hover {
        transform: none;
    }

    .load-more-btn:hover {
        transform: none;
    }

    /* Melhor acessibilidade para touch */
    .info-card,
    .anais-item,
    .speaker-card,
    .gallery-item,
    .certificate-card {
        cursor: pointer;
    }

    .info-card:active,
    .anais-item:active,
    .speaker-card:active,
    .gallery-item:active,
    .certificate-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Aumentar áreas de toque */
    .nav-btn,
    .day-btn,
    .anais-btn,
    .authority-link,
    .cta-button,
    .certificate-btn,
    .submit-button,
    .load-more-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .gallery-item img {
        cursor: pointer;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background: #000000;
        color: #FFFFFF;
    }

    .hero-subtitle {
        background: rgba(0, 0, 0, 0.8);
        border-color: #FFFFFF;
    }

    .event-info,
    .schedule-section,
    .speakers-section,
    .gallery-section,
    .about-section,
    .contact-section {
        background: #000000;
    }

    .info-card,
    .schedule-content,
    .anais-item,
    .speaker-card,
    .gallery-item,
    .certificate-card {
        background: #000000;
        border: 3px solid #FFFFFF;
        color: #FFFFFF;
    }

    .speaker-topic {
        background: rgba(255, 255, 255, 0.1);
        border-color: #FFFFFF;
    }

    .gallery-overlay {
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
        color: #000000;
    }

    .certificate-card {
        background: rgba(255, 255, 255, 0.1);
        border-color: #FFFFFF;
    }

    .contact-link {
        background: rgba(255, 255, 255, 0.1);
        border-color: #FFFFFF;
    }

    .authority-link {
        background: #000000;
        border-color: #FFFFFF;
        color: #FFFFFF;
    }

    .authority-link:hover {
        background: #FFFFFF;
        color: #000000;
    }

    .about-gallery {
        background: #000000;
        border-color: #FFFFFF;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .conference-elements .element {
        animation: none;
    }

    .info-card,
    .anais-item,
    .speaker-card,
    .gallery-item,
    .certificate-card,
    .authority-link,
    .cta-button,
    .day-btn,
    .anais-btn,
    .certificate-btn,
    .submit-button,
    .load-more-btn {
        transition: none;
    }

    .gallery-item img,
    .speaker-image img {
        transition: none;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .main-header,
    .event-info,
    .hero-section,
    .mobile-menu-toggle,
    .schedule-nav,
    .anais-filters,
    .load-more,
    .contact-section {
        display: none !important;
    }

    .info-card,
    .anais-item,
    .speaker-card,
    .gallery-item {
        break-inside: avoid;
        border: 2px solid #000 !important;
        background: white !important;
        box-shadow: none !important;
    }

    .hero-content {
        position: static !important;
        background: white !important;
    }

    a {
        color: #4A90E2 !important;
        text-decoration: underline !important;
    }

    .gallery-overlay {
        position: static !important;
        background: white !important;
        color: black !important;
        padding: 1rem 0;
    }

    .authority-link,
    .certificate-btn,
    .submit-button,
    .load-more-btn {
        border: 2px solid #000 !important;
        background: white !important;
        color: black !important;
    }

    .anais-btn,
    .day-btn,
    .cta-button {
        border: 2px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Focus Styles for Accessibility */
.info-card:focus,
.anais-item:focus,
.speaker-card:focus,
.gallery-item:focus,
.certificate-card:focus,
.authority-link:focus,
.cta-button:focus,
.nav-btn:focus,
.day-btn:focus,
.anais-btn:focus,
.certificate-btn:focus,
.submit-button:focus,
.load-more-btn:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-item img,
    .speaker-image img,
    .info-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    }

    .hero-subtitle {
        background: rgba(0, 0, 0, 0.8);
        color: #FFFFFF;
    }

    .event-info,
    .schedule-section,
    .speakers-section,
    .gallery-section,
    .about-section,
    .contact-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    }

    .info-card,
    .schedule-content,
    .anais-item,
    .speaker-card,
    .gallery-item,
    .certificate-card {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
        border-color: #FFFFFF;
    }

    .speaker-topic {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .contact-link {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }

    .about-gallery {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
}

/* Reduced Transparency */
@media (prefers-reduced-transparency: reduce) {
    .certificate-card {
        backdrop-filter: none;
        background: rgba(74, 144, 226, 0.9);
    }

    .hero-subtitle {
        background: rgba(74, 144, 226, 0.9);
        backdrop-filter: none;
    }

    .info-card,
    .anais-item,
    .speaker-card,
    .gallery-item,
    .certificate-card {
        backdrop-filter: none;
    }
}

/* Large Text Support */
@media (min-resolution: 1.25dppx) and (max-width: 768px) {
    body {
        font-size: 18px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .schedule-section h2,
    .anais-section h2,
    .speakers-section h2,
    .gallery-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 2.2rem;
    }

    .anais-header h3 {
        font-size: 1.1rem;
    }

    .speaker-info h3 {
        font-size: 1.1rem;
    }

    .gallery-overlay h4 {
        font-size: 1rem;
    }
}



