/* Responsive Design Styles */

/* Mobile First Approach */
/* Base styles are already mobile-optimized in main.css */

/* Mobile Styles (max-width: 480px) - Override main.css mobile styles */
@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .countdown-section {
        padding: 6px 15px;
    }
    
    .countdown-timer {
        gap: 6px;
        margin: 6px 0;
    }
    
    .countdown-item {
        min-width: 45px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
        padding: 6px 10px;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-top: 3px;
    }
    
    .meadow-zone {
        padding: 0 10px;
    }
    
    .sky-zone {
        height: 30vh;
    }
    
    .meadow-zone {
        height: 70vh;
    }
    
    /* Mobile windmill adjustments */
    .windmill {
        width: 40px;
        height: 60px;
    }
    
    .windmill-roof {
        width: 44px;
        height: 14px;
        top: -10px;
        border-radius: 22px 22px 0 0;
    }
    
    .windmill::before {
        width: 8px;
        height: 8px;
        top: 20px;
        border-radius: 50%;
    }
    
    .windmill::after {
        width: 12px;
        height: 18px;
        bottom: 5px;
    }
    
    .windmill-rotor {
        width: 80px;
        height: 12px;
        top: -12px;
        border-radius: 6px;
    }
    
    /* Mobile Paulchen flight animation adjustments */
    .paulchen {
        animation: paulchenFlyMobile 8s ease-in-out infinite;
    }
    
    /* Mobile Paulchen flight animation adjustments */
    .paulchen {
        animation: paulchenFlyMobile 8s ease-in-out infinite;
    }
    
    /* Mobile castle adjustments */
    .castle {
        width: 180px;
        height: 210px;
        left: 15%;
        bottom: 50%;
    }
    

    
    /* Mobile tulip adjustments */
    .tulip-patch {
        width: 25px !important;
        height: 35px !important;
    }
    
    .tulip-petals {
        border-radius: 12px 12px 0 0 !important;
    }
    
    .tulip-petal-detail {
        border-radius: 12px 12px 0 0 !important;
    }
    
    .tulip-base {
        width: 16px !important;
        height: 8px !important;
        bottom: -4px !important;
        border-radius: 0 0 8px 8px !important;
    }
    
    .tulip-stem {
        width: 3px !important;
        height: 18px !important;
        bottom: -12px !important;
    }
    
    .tulip-leaf {
        width: 9px !important;
        height: 6px !important;
        bottom: -6px !important;
    }
}

/* Medium Mobile Styles (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {

    

}

/* Tablet Styles */
@media (min-width: 768px) {
    .title {
        font-size: 3rem;
    }
    
    .countdown-timer {
        gap: 20px;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 3rem;
        padding: 15px 20px;
    }
    
    .countdown-label {
        font-size: 1rem;
    }
    
    .meadow-zone {
        padding: 0 40px;
    }
    
    .windmill {
        width: 50px;
        height: 75px;
    }
    
    .windmill-roof {
        width: 54px;
        height: 17px;
        top: -12px;
        border-radius: 27px 27px 0 0;
    }
    
    .windmill::before {
        width: 10px;
        height: 10px;
        top: 25px;
    }
    
    .windmill::after {
        width: 14px;
        height: 22px;
        bottom: 6px;
    }
    
    .windmill-rotor {
        width: 95px;
        height: 14px;
        top: -14px;
        border-radius: 7px;
    }
    
    /* Tablet Paulchen flight animation adjustments */
    .paulchen {
        animation: paulchenFlyTablet 8s ease-in-out infinite;
    }
    
    /* Tablet castle adjustments */
    .castle {
        width: 180px;
        height: 210px;
        left: 18%;
        bottom: 45%;
    }
    

    
    .tulip-patch {
        width: 40px !important;
        height: 50px !important;
    }
    
    .tulip-petals {
        border-radius: 20px 20px 0 0 !important;
    }
    
    .tulip-petal-detail {
        border-radius: 20px 20px 0 0 !important;
    }
    
    .tulip-base {
        width: 26px !important;
        height: 12px !important;
        bottom: -6px !important;
        border-radius: 0 0 13px 13px !important;
    }
    
    .tulip-stem {
        width: 5px !important;
        height: 30px !important;
        bottom: -18px !important;
    }
    
    .tulip-leaf {
        width: 15px !important;
        height: 10px !important;
        bottom: -8px !important;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .title {
        font-size: 3.5rem;
    }
    
    .countdown-timer {
        gap: 30px;
    }
    
    .countdown-item {
        min-width: 100px;
    }
    
    .countdown-number {
        font-size: 3.5rem;
        padding: 20px 25px;
    }
    
    .countdown-label {
        font-size: 1.1rem;
    }
    
    .meadow-zone {
        padding: 0 60px;
    }
    
    .windmill {
        width: 60px;
        height: 90px;
    }
    
    .windmill-roof {
        width: 65px;
        height: 20px;
        top: -15px;
        border-radius: 32px 32px 0 0;
    }
    
    .windmill::before {
        width: 12px;
        height: 12px;
        top: 30px;
    }
    
    .windmill::after {
        width: 18px;
        height: 28px;
        bottom: 8px;
    }
    
    .windmill-rotor {
        width: 120px;
        height: 18px;
        top: -18px;
        border-radius: 9px;
    }
    
    /* Desktop castle adjustments */
    .castle {
        width: 240px;
        height: 280px;
        left: 22%;
        bottom: 48%;
    }
    

    

    
    .tulip-patch {
        width: 50px !important;
        height: 60px !important;
    }
    
    .tulip-petals {
        border-radius: 25px 25px 0 0 !important;
    }
    
    .tulip-petal-detail {
        border-radius: 25px 25px 0 0 !important;
    }
    
    .tulip-base {
        width: 32px !important;
        height: 14px !important;
        bottom: -7px !important;
        border-radius: 0 0 16px 16px !important;
    }
    
    .tulip-stem {
        width: 6px !important;
        height: 35px !important;
        bottom: -20px !important;
    }
    
    .tulip-leaf {
        width: 18px !important;
        height: 12px !important;
        bottom: -10px !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .countdown-section {
        padding: 8px 15px;
    }
    
    .title {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .countdown-timer {
        margin: 8px 0;
    }
    
    .countdown-number {
        font-size: 1.8rem;
        padding: 6px 10px;
    }
    
    .sky-zone {
        height: 25vh;
    }
    
    .meadow-zone {
        height: 75vh;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .countdown-number {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Prevent zoom on double-tap for all interactive elements */
    * {
        touch-action: manipulation;
    }
    
    /* Ensure smooth scrolling */
    .container {
        -webkit-overflow-scrolling: touch;
    }
    .countdown-number:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .countdown-item {
        min-width: 70px;
        padding: 5px;
    }
    
    .countdown-number {
        padding: 12px 18px;
    }
    
    /* Increase castle touch target on mobile */
    .castle {
        padding: 10px;
        margin: -10px;
    }
    
    /* Improve Paulchen touch target */
    .paulchen {
        padding: 15px;
        margin: -15px;
    }
    
    /* Add touch feedback for interactive elements */
    .paulchen:active,
    .castle:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Improve debug button touch targets */
    #debug-button {
        min-width: 60px;
        min-height: 60px;
        padding: 15px;
    }
    
    /* Improve debug panel button touch targets */
    #debug-panel button {
        min-height: 44px;
        padding: 12px 8px;
        font-size: 14px;
        touch-action: manipulation;
    }
    
    /* Add touch feedback for debug buttons */
    #debug-panel button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}
