/* DotCast - 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;
    }

    .hero-stats {
        gap: 2rem;
    }

    .episode-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .episode-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .player-content {
        padding: 1rem;
    }

    .player-info {
        flex: 0 0 200px;
    }

    .player-controls {
        margin: 0 1rem;
    }

    .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(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .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;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .episode-meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .episode-card {
        padding: 1.5rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group input {
        border-radius: 5px;
    }

    .newsletter-btn {
        border-radius: 5px;
        margin-top: 1rem;
    }

    .social-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .player-content {
        flex-direction: column;
        gap: 1rem;
    }

    .player-info {
        flex: none;
        justify-content: center;
    }

    .player-controls {
        margin: 0;
        order: -1;
    }

    .player-progress {
        order: 1;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1rem;
    }

    .episode-card {
        padding: 1rem;
    }

    .episode-content h3 {
        font-size: 1.3rem;
    }

    .about-text {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .player-content {
        padding: 0.5rem 1rem;
    }

    .player-info img {
        width: 50px;
        height: 50px;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .episodes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .topics-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .episode-card {
        grid-template-columns: 350px 1fr;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a:hover::before {
        width: 0;
    }

    .episode-card:hover {
        transform: none;
        box-shadow: none;
    }

    .topic-card:hover {
        transform: none;
        box-shadow: none;
    }

    .cta-button:hover {
        transform: none;
    }

    .episode-image:hover img {
        transform: none;
    }

    .play-button:hover {
        transform: scale(1);
    }

    .player-btn:hover {
        background: none;
    }

    .social-link:hover {
        box-shadow: none;
    }

    .submit-button:hover {
        transform: none;
    }

    .newsletter-btn:hover {
        transform: none;
    }

    .load-more-btn:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background: #000000;
        color: #ffffff;
    }

    .hero-title,
    .featured-episode h2,
    .episodes-section h2,
    .about-section h2,
    .topics-section h2,
    .contact-section h2 {
        color: #ffffff;
        text-shadow: none;
    }

    .episode-card,
    .topic-card,
    .host-card {
        background: #000000;
        border: 2px solid #ffffff;
    }

    .cta-button.primary,
    .submit-button,
    .newsletter-btn,
    .load-more-btn {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff;
    }

    .play-btn {
        background: #ffffff;
        color: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-title,
    .episode-image img,
    .episode-card,
    .topic-card,
    .play-button,
    .player-btn,
    .cta-button,
    .submit-button,
    .newsletter-btn,
    .load-more-btn,
    .social-link,
    .authority-link,
    .audio-player {
        transition: none !important;
    }

    .waveform-animation {
        animation: none;
    }

    .nav-menu {
        transition: none;
    }
}

/* Dark Mode (já é dark por padrão) */
@media (prefers-color-scheme: dark) {
    /* Já otimizado para dark mode */
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    .main-header,
    .hero-section,
    .audio-player,
    .mobile-menu-toggle {
        display: none !important;
    }

    .episode-card,
    .topic-card,
    .host-card {
        break-inside: avoid;
        border: 1px solid #000 !important;
        background: white !important;
    }

    a {
        color: #0088ff !important;
        text-decoration: underline !important;
    }

    .tag,
    .episode-number {
        border: 1px solid #000 !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        margin: 2rem 0;
    }

    .episode-card {
        grid-template-columns: 200px 1fr;
    }

    .player-content {
        flex-direction: row;
    }

    .player-info {
        flex: 0 0 150px;
    }
}

/* Focus Styles for Accessibility */
.episode-card:focus-within,
.topic-card:focus-within,
.social-link:focus,
.authority-link:focus,
.cta-button:focus,
.submit-button:focus,
.newsletter-btn:focus,
.load-more-btn:focus,
.player-btn:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .episode-image img,
    .host-card img,
    .player-info img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}



