/* Responsive Styles for BlackPet Pro Library Landing Page */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .timer-content {
        flex-direction: row;
        align-items: center;
    }
    
    .mobile-cta {
        display: none;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .problem-grid,
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid,
    .content-categories,
    .bonus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-showcase,
    .ebook-showcase,
    .emotional-hook,
    .final-cta-content {
        flex-direction: row;
    }
    
    .product-image,
    .solution-description {
        width: 45%;
        margin-right: 5%;
    }
    
    .ebooks-image,
    .value-proposition {
        width: 50%;
        margin-right: 5%;
    }
    
    .emotional-image {
        width: 40%;
        margin-right: 5%;
    }
    
    .emotional-text {
        width: 55%;
    }
    
    .harmony-image {
        width: 45%;
        margin-right: 5%;
    }
    
    .final-cta-text {
        width: 50%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .main-headline {
        font-size: 3.5rem;
    }
    
    .subheadline {
        font-size: 2rem;
    }
}

/* Mobile First Adjustments (default styles for mobile) */
@media (max-width: 767px) {
    * {
        max-width: 100vw;
    }
    
    body {
        font-size: 16px;
        overflow-x: hidden;
        width: 100%;
    }
    
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero {
        padding: 100px 0 60px;
        overflow-x: hidden;
    }
    
    .hero-content {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .main-headline {
        font-size: 2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .subheadline {
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .section-headline {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .timer-content {
        flex-direction: column;
        gap: 5px;
        padding: 5px 10px;
    }
    
    .timer-label {
        font-size: 0.75rem;
    }
    
    .timer-display {
        font-size: 0.9rem;
    }
    
    .timer-message {
        font-size: 0.7rem;
        text-align: center;
    }
    
    .countdown-timer-bar {
        padding: 6px 0;
    }
    
    .visitor-counter {
        bottom: 15px !important;
        right: 10px !important;
        left: auto !important;
        max-width: 280px;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .visitor-icon {
        font-size: 1rem;
    }
    
    .visitor-text {
        font-size: 0.8rem;
    }
    
    .recent-purchase-container {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    .recent-purchase {
        padding: 12px 14px;
        max-width: calc(100% - 20px);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.15);
    }
    
    .purchase-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .purchase-icon i {
        font-size: 1.1rem;
    }
    
    .purchase-text {
        font-size: 0.8rem;
    }
    
    .purchase-close {
        font-size: 0.9rem;
        top: 3px;
        right: 8px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .main-headline {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .problem-grid,
    .solutions-grid,
    .testimonial-grid,
    .content-categories,
    .bonus-grid {
        grid-template-columns: 1fr;
    }
    
    .investment-cta {
        font-size: 1.1rem !important;
        padding: 18px 30px !important;
        border-width: 2px !important;
    }
    
    .investment-cta.large {
        font-size: 1.3rem !important;
        padding: 20px 35px !important;
    }
    
    .product-showcase,
    .ebook-showcase,
    .emotional-hook,
    .final-cta-content {
        flex-direction: column;
    }
    
    .ebooks-carousel {
        width: 100%;
        margin-bottom: 30px;
        padding: 15px;
    }
    
    .carousel-counter {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .product-image,
    .ebooks-image,
    .emotional-image,
    .harmony-image,
    .solution-description,
    .value-proposition,
    .emotional-text,
    .final-cta-text {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        max-width: 100%;
    }
    
    .wins-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-trust {
        text-align: center;
    }
    
    .trust-badges i {
        margin: 0 10px;
    }
    
    /* Exit Popup - Desabilitado em Mobile */
    .exit-popup {
        display: none !important;
    }
    
    /* Exit Popup Mobile
    .exit-popup {
        padding: 10px;
    }
    
    .popup-content {
        max-width: 100%;
        margin: 0;
        max-height: 95vh;
    }
    
    .popup-header {
        padding: 20px 15px;
    }
    
    .popup-header h2 {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .popup-header h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .popup-body {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .popup-image {
        width: 100%;
        margin-bottom: 0;
    }
    
    .popup-img {
        max-height: 180px;
        object-fit: cover;
    }
    
    .popup-offer {
        width: 100%;
    }
    
    .popup-price-new {
        font-size: 1.2rem;
    }
    
    .popup-urgency {
        font-size: 0.85rem;
    }
    
    .popup-countdown {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .popup-countdown p {
        font-size: 0.8rem;
    }
    
    .mini-countdown {
        font-size: 1.6rem;
    }
    
    .popup-button {
        font-size: 0.85rem;
        padding: 12px 20px;
        width: 100%;
    }
    
    .popup-guarantee {
        font-size: 0.75rem;
    }
    
    .popup-testimonial {
        padding: 15px;
        margin-top: 10px;
    }
    
    .popup-testimonial p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .popup-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 10px;
    }
    
    .popup-author span {
        font-size: 0.8rem;
    }
    
    .popup-rating {
        font-size: 0.85rem;
    }
    
    .popup-footer {
        padding: 12px 15px;
        font-size: 0.75rem;
    }
    
    .close-popup {
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
        top: 8px;
        right: 8px;
    }
    
    .mobile-cta {
        display: block;
    }
    
    .triple-guarantee {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .guarantee-badge {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .guarantee-intro {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .guarantee-statement {
        font-size: 1rem;
    }
    
    .refund-cta-section {
        padding: 20px 15px;
    }
    
    .refund-intro {
        font-size: 1rem;
    }
    
    .refund-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .refund-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .terms-link {
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .transparency-note {
        font-size: 0.9rem;
    }
    
    .comparison-table-container {
        overflow-x: auto;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .countdown {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .trust-seals {
        gap: 15px;
    }
    
    .seal-item {
        width: 45%;
    }
    
    .nightmare-bullets li {
        font-size: 1rem;
    }
    
    .media-logos {
        gap: 15px;
    }
    
    .media-logo {
        height: 30px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .cta-button:hover,
    .popup-button:hover,
    .problem-item:hover,
    .solution-item:hover,
    .win-item:hover,
    .bonus-item:hover,
    .grid-image:hover,
    .media-logo:hover {
        transform: none;
        box-shadow: none;
    }
    
    .cta-button:active,
    .popup-button:active {
        background-color: #ff5252;
        transform: translateY(2px);
    }
    
    .problem-item:active,
    .solution-item:active,
    .win-item:active,
    .bonus-item:active {
        transform: translateY(-2px);
    }
}

/* Print Styles */
@media print {
    .countdown-timer-bar,
    .cta-primary,
    .visitor-counter,
    .urgency-section,
    .exit-popup,
    .mobile-cta,
    .recent-purchase-container {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
        background: none;
        color: #000;
    }
    
    .main-headline,
    .subheadline {
        color: #000;
        text-shadow: none;
    }
    
    .section-headline:after {
        display: none;
    }
    
    .problem-section,
    .failed-solutions,
    .solution-intro,
    .product-details,
    .comparison-section,
    .bonus-section,
    .guarantee-section,
    .faq-section,
    .final-cta {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .footer {
        background-color: #fff;
        color: #000;
        border-top: 1px solid #ccc;
    }
    
    .footer-logo h2,
    .footer-links a {
        color: #000;
    }
}

/* High-DPI Screen Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .countdown-timer-bar {
        background-color: #111;
    }
    
    .problem-item,
    .solution-item,
    .testimonial-item,
    .category,
    .bonus-item,
    .faq-item,
    .guarantee-content {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Extra Small Screens - Contador ainda mais discreto */
@media (max-width: 400px) {
    .visitor-counter {
        bottom: 10px !important;
        right: 5px !important;
        left: auto !important;
        padding: 6px 10px;
        font-size: 0.7rem;
        max-width: 250px;
    }
    
    .visitor-icon {
        font-size: 0.9rem;
    }
    
    .visitor-text {
        font-size: 0.7rem;
    }
    
    #visitor-count {
        font-size: 0.75rem;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .cta-button.pulse,
    .popup-button,
    .robbery-badge,
    .guarantee-badge-img,
    .exploding-word {
        animation: none;
    }
    
    .grid-image:hover,
    .problem-item:hover,
    .solution-item:hover,
    .win-item:hover,
    .bonus-item:hover,
    .cta-button:hover,
    .popup-button:hover,
    .media-logo:hover {
        transform: none;
        transition: none;
    }
}
