/* Estilos adicionais para melhorar a responsividade e experiência em diferentes dispositivos */

/* Ajustes para telas muito pequenas (smartphones compactos) */
@media (max-width: 360px) {
    .logo-container {
        width: 90px;
        height: 90px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    .card-header h2 {
        font-size: 0.95rem;
    }
    
    .social-grid {
        gap: 8px;
    }
    
    .social-btn {
        font-size: 1.2rem;
    }
    
    .highlight-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .highlight-text h3 {
        font-size: 0.9rem;
    }
    
    .highlight-text p {
        font-size: 0.8rem;
    }
}

/* Ajustes para telas médias (tablets) */
@media (min-width: 768px) {
    .content-container {
        max-width: 540px;
        padding: 30px;
    }
    
    .logo-container {
        width: 110px;
        height: 110px;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    header h1 {
        font-size: 1.7rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .card-header {
        padding: 18px 22px;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
    }
    
    .action-btn {
        padding: 16px 20px;
        font-size: 1.05rem;
    }
    
    .social-btn {
        font-size: 1.6rem;
    }
    
    .highlight-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .highlight-text h3 {
        font-size: 1.1rem;
    }
    
    .highlight-text p {
        font-size: 0.9rem;
    }
}

/* Ajustes para telas grandes (desktops) */
@media (min-width: 1024px) {
    .content-container {
        max-width: 580px;
    }
    
    .card-container {
        gap: 20px;
    }
    
    .highlights {
        gap: 20px;
    }
}

/* Ajustes para orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .content-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .logo-wrapper {
        height: 80px;
        margin-bottom: 10px;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    header {
        padding: 20px 0 10px;
    }
    
    .card-container {
        gap: 12px;
    }
    
    .card-header {
        padding: 12px 16px;
    }
    
    .action-btn {
        padding: 10px 14px;
    }
    
    footer {
        margin-top: 15px;
        padding-top: 10px;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* Suporte para telas de alta densidade (retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card, .highlight-card {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
}

/* Ajustes para dispositivos com tela sensível ao toque */
@media (hover: none) and (pointer: coarse) {
    .action-btn, .social-btn, .highlight-card, .toggle-btn {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    .toggle-btn {
        width: 36px;
        height: 36px;
    }
}

/* Melhorias para impressão */
@media print {
    .app-container {
        background: none !important;
    }
    
    .background-gradient, .background-shapes {
        display: none !important;
    }
    
    .card, .highlight-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .card-header {
        background-color: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .toggle-btn {
        display: none !important;
    }
    
    .card-content {
        max-height: none !important;
        display: block !important;
        padding: 16px !important;
    }
    
    .action-btn, .social-btn {
        border: 1px solid #ddd !important;
        color: #000 !important;
        background: #f0f0f0 !important;
    }
    
    .highlight-icon {
        border: 1px solid #ddd !important;
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* Melhorias de desempenho para dispositivos de baixo desempenho */
@supports (content-visibility: auto) {
    .card:not(.active) .card-content {
        content-visibility: auto;
        contain-intrinsic-size: 0 100px;
    }
}

/* Ajustes para dispositivos com notch */
@supports (padding-top: env(safe-area-inset-top)) {
    .content-container {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
