/* San Valentín - Responsive Design */

/* Mobile First Approach */

/* Base styles are mobile-first in main.css */

/* Tablet styles */
@media (min-width: 768px) {
    .newspaper-title {
        font-size: 48px;
    }
    
    .envelope-container {
        width: 300px;
        height: 190px;
    }
    
    .envelope-front,
    .envelope-flap {
        border-left-width: 150px;
        border-right-width: 150px;
    }
    
    .letter {
        width: 260px;
        height: 150px;
        font-size: 20px;
    }
    
    .open-button {
        font-size: 22px;
        padding: 18px 45px;
    }
    
    .big-question {
        font-size: 48px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        padding: 40px;
        margin: 20px;
    }
    
    .modal-content h2 {
        font-size: 42px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .newspaper-title {
        font-size: 56px;
    }
    
    .envelope-container {
        width: 320px;
        height: 200px;
    }
    
    .envelope-front,
    .envelope-flap {
        border-left-width: 160px;
        border-right-width: 160px;
    }
    
    .letter {
        width: 280px;
        height: 160px;
        font-size: 24px;
    }
    
    .open-button {
        font-size: 24px;
        padding: 20px 50px;
    }
    
    .big-question {
        font-size: 56px;
    }
    
    .chosen-content {
        flex-direction: row;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modal-content {
        padding: 50px;
        margin: 0;
    }
    
    .modal-content h2 {
        font-size: 48px;
    }
}

/* Large Desktop styles */
@media (min-width: 1440px) {
    .main-content {
        max-width: 900px;
    }
    
    .section {
        padding: 50px 40px;
    }
}

/* Mobile specific styles */
@media (max-width: 767px) {
    .newspaper-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .envelope-container {
        width: 280px;
        height: 180px;
    }
    
    .envelope-front,
    .envelope-flap {
        border-left-width: 140px;
        border-right-width: 140px;
    }
    
    .letter {
        width: 240px;
        height: 140px;
        font-size: 18px;
        left: 20px;
        top: 20px;
    }
    
    .open-button {
        font-size: 20px;
        padding: 15px 40px;
        min-height: 44px; /* Touch target minimum */
    }
    
    .big-question {
        font-size: 32px;
    }
    
    .chosen-content {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-content {
        padding: 30px;
        margin: 20px;
    }
    
    .modal-content h2 {
        font-size: 36px;
    }
    
    .section {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .reasons-title h2 {
        font-size: 36px;
    }
    
    .reasons-title p {
        font-size: 24px;
    }
    
    .signals-title h2 {
        font-size: 32px;
    }
    
    .final-question h2 {
        font-size: 32px;
    }
    
    .answer-section h3 {
        font-size: 28px;
    }
    
    /* Ensure minimum touch targets */
    .answer-button {
        min-height: 44px;
        padding: 20px 25px;
    }
    
    .no-button {
        min-height: 44px;
        padding: 20px 25px;
    }
    
    .close-modal {
        min-height: 44px;
        padding: 12px 35px;
    }
    
    /* Improve text legibility on small screens */
    .chosen-text p {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .reasons-list li {
        font-size: 18px;
    }
    
    .signals-list li {
        font-size: 16px;
    }
    
    .forecast p {
        font-size: 15px;
    }
    
    .final-question p {
        font-size: 18px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .initial-view {
        min-height: auto;
        padding: 10px;
    }
    
    .newspaper-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .envelope-container {
        width: 240px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .envelope-front,
    .envelope-flap {
        border-left-width: 120px;
        border-right-width: 120px;
        border-bottom-width: 75px;
        border-top-width: 75px;
    }
    
    .letter {
        width: 200px;
        height: 110px;
        font-size: 16px;
    }
    
    .open-button {
        font-size: 18px;
        padding: 12px 30px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .envelope-back,
    .envelope-front,
    .envelope-flap {
        /* Sharper borders on high DPI */
        border-radius: 8px;
    }
    
    .letter {
        border-radius: 6px;
    }
}

/* Print styles */
@media print {
    .hearts-background,
    .hearts-animation,
    .floating-heart {
        display: none;
    }
    
    .modal {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .section {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}