/* Responsive CSS for Tourist Guide Application */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --title-size: 24px;
        --subtitle-size: 20px;
        --body-size: 16px;
        --small-size: 14px;
    }
    
    .app-header {
        padding: 0 5px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-title-main {
        font-size: 24px;
        margin-bottom: 0.5rem;
    }
    
    .header-region {
        font-size: 22px;
        letter-spacing: 0.1em;
    }
    
    .story-description {
        padding: 5px 20px;
        margin-left: -15px !important;
    }
    
    .story-content {
        padding: 50px 15px 0 15px;
    }
    
    .story-id {
        top: 10px;
        right: 10px;
        font-size: 42px;
    }
}

/* Medium Mobile Devices (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .story-content {
        padding: 60px 25px 0 25px;
    }
    
    .header-title-main {
        font-size: 28px;
    }
    
    .header-region {
        font-size: 25px;
    }
    
    .story-id {
        font-size: 49px;
    }

    .story-description {
        margin-left: -25px !important;
    }
}

@media (max-width: 767px) {
    .itinerary-time{
        font-size:1.3rem !important;
    }
    .itinerary-title{
        font-size:1.5rem !important;
    }
    .itinerary-link-wrapper{
        width: 40px;
        height: 40px;
    }
    .itinerary-link{
        width: 48px;
        height: 48px;
    }
    .itinerary-link i{
        font-size: 0.6em;
    }
    .destination-label{
        margin-bottom: 6rem;
    }
}

/* Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --title-size: 32px;
        --subtitle-size: 24px;
        --body-size: 20px;
        --small-size: 18px;
    }
    
    .header-title-main {
        font-size: 36px;
    }
    
    .header-region {
        font-size: 30px;
    }
    
    .story-description {
        /* max-width: 80%; */
        margin: 0;
    }
    
    .destination-menu {
        max-width: 500px;
        left: -500px;
    }
    
    .destination-menu.open {
        left: 0;
    }
    
    .story-id {
        font-size: 62px;
    }
}

/* Desktops and Large Screens (1025px+) */
@media (min-width: 1025px) {
    :root {
        --title-size: 36px;
        --subtitle-size: 28px;
        --body-size: 22px;
        --small-size: 18px;
    }
    
    .header-title-main {
        font-size: 42px;
    }
    
    .header-region {
        font-size: 34px;
    }
    
    .story-description {
        /* max-width: 70%; */
        margin: 0;
    }
    
    .destination-menu {
        max-width: 600px;
        left: -600px;
    }
    
    .destination-menu.open {
        left: 0;
    }
    
    .story-id {
        font-size: 72px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .app-header {
        height: 40px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .header-title-main {
        font-size: 22px;
        margin-bottom: 0.25rem;
    }
    
    .header-region {
        font-size: 20px;
        letter-spacing: 0.08em;
    }
    
    .story-viewer {
        padding-top: 40px;
    }
    
    .story-description {
        padding: 5px 20px;
    }
    
    .story-content {
        padding: 40px 15px 30px;
    }
    
    .menu-button, .status-indicator {
        top: 5px;
    }
    
    .touch-area {
        top: 40px;
        bottom: 40px;
    }
    
    .story-id {
        font-size: 42px;
        top: 10px;
    }
}

/* High Contrast Mode (for accessibility) */
@media (prefers-contrast: high) {
    :root {
        --overlay-bg: rgba(0, 0, 0, 0.9);
    }
    
    .story-description p {
        text-shadow: 2px 2px 4px #000000;
    }
    
    .status-indicator, .menu-button {
        background-color: #000000;
        border: 1px solid #ffffff;
    }
    
    .story-id {
        text-shadow: 3px 3px 6px #000000, 0 0 15px #000000;
    }
}

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