/* ===== RESPONSIVE STYLES - responsive.css ===== */

/* ===== MOBILE NAVBAR ===== */
@media (max-width: 768px) {
    body {
        padding-top: var(--navbar-height-mobile);
    }

    .navbar-container {
        height: var(--navbar-height-mobile);
    }

    .navbar-brand {
        font-size: 1.3em;
        gap: 8px;
    }

    .plumeria-flower {
        width: 35px;
        height: 35px;
    }

    .navbar-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .navbar-nav.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-md);
        font-size: var(--font-size-lg);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: var(--spacing-sm);
    }

    .dropdown-item {
        color: white;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #f0ede5;
    }

    .btn-upload {
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-sm);
    }
}

/* ===== TABLET AND MOBILE LAYOUTS ===== */
@media (max-width: 768px) {
    .container {
        margin: var(--spacing-sm);
        padding: var(--spacing-lg);
    }

    h1 {
        font-size: 2.2em;
    }

    /* Grid layouts become single column */
    .grid-2,
    .grid-3,
    .albums-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Button adjustments */
    .btn {
        width: 100%;
        margin: var(--spacing-xs) 0;
    }

    .btn-sm {
        width: auto;
        margin: 0 var(--spacing-xs) var(--spacing-xs) 0;
    }

    /* Album navigation */
    .album-navigation {
        flex-direction: column;
        align-items: center;
    }

    .album-nav-btn {
        width: 200px;
        text-align: center;
    }

    /* Photo layouts */
    .photo-image {
        max-height: 60vh;
        min-height: 200px;
    }

    .photo-image.landscape {
        min-height: 250px;
        max-height: 400px;
    }

    .photo-image.portrait {
        min-height: 300px;
        max-height: 60vh;
    }

    .photo-image.square {
        min-height: 280px;
        max-height: 350px;
    }

    /* Album cards */
    .album {
        flex-direction: column;
        text-align: center;
    }

    .album-thumbnails {
        flex: none;
        width: 200px;
        height: 200px;
        margin: 0 auto var(--spacing-md);
    }

    .album-controls {
        position: static;
        justify-content: center;
        margin-top: var(--spacing-md);
    }

    /* Collection layouts */
    .date-badge {
        position: static;
        display: block;
        margin-top: var(--spacing-md);
    }

    .collection-header {
        padding: 25px var(--spacing-lg);
    }

    .collection-header h1 {
        font-size: 2.2em;
    }

    /* Home page stats */
    .home-stats .stat-box {
        display: block;
        margin: var(--spacing-sm) auto;
        width: 120px;
    }

    /* Bucket list mobile adjustments */
    .polaroid-container {
        display: none;
    }

    .bucket-list {
        margin: 0;
    }

    .bucket-item {
        padding: 10px;
    }

    .item-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    /* Special note page */
    .left-images, .right-images {
        display: none;
    }

    .note-paper {
        margin-left: 0;
        margin-right: 0;
    }

    .note-text {
        font-size: 1.2em;
    }

    .bottom-images {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .bottom-images .polaroid {
        transform: rotate(0deg) !important;
        margin-top: 0 !important;
    }
}

/* ===== SMALL MOBILE PHONES ===== */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-md);
    }

    h1 {
        font-size: 2em;
    }

    /* Photo layouts for small screens */
    .photo-image {
        max-height: 50vh;
        min-height: 180px;
    }

    .photo-image.landscape {
        min-height: 200px;
        max-height: 300px;
    }

    .photo-image.portrait {
        min-height: 250px;
        max-height: 50vh;
    }

    .photo-image.square {
        min-height: 220px;
        max-height: 280px;
    }

    /* Center photo on home page */
    .center-photo img {
        max-height: 300px;
    }

    /* Main content text size */
    .main-content p, .simple-links a {
        font-size: 15px;
    }

    /* Bucket list adjustments */
    .container {
        padding: 20px;
    }

    .bucket-item {
        padding: 10px;
    }

    .item-number {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

/* ===== DESKTOP AND LARGE SCREENS ===== */
@media (min-width: 1200px) {
    .container-wide {
        max-width: 1200px;
    }

    /* Show drag handles on larger screens during reorder mode */
    .reorder-mode .drag-handle {
        display: block;
    }

    /* Better spacing for larger screens */
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        padding-top: 0;
        background: white;
    }

    .navbar,
    .album-controls,
    .photo-controls,
    .btn,
    .control-btn,
    .mobile-menu-toggle {
        display: none !important;
    }

    .container {
        box-shadow: none;
        border: 1px solid #ccc;
        margin: 0;
        padding: 20px;
    }

    .photo-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }

    /* Special note print styles */
    .note-paper {
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
    }

    .left-images, .right-images, .bottom-images {
        display: none;
    }

    /* Hide polaroid decorations for bucket list */
    .polaroid-container {
        display: none;
    }

    .bucket-list {
        margin: 0;
    }
}

/* ===== HIGH DPI / RETINA DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .plumeria-flower,
    .photo-thumb img,
    .polaroid img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .float,
    .margin-polaroid {
        animation: none;
    }

    .photo-card:hover,
    .album-card:hover,
    .card:hover {
        transform: none;
    }
}

/* ===== DARK MODE SUPPORT (if needed) ===== */
@media (prefers-color-scheme: dark) {
    /* Currently not implemented - keeping light theme */
    /* Future: Could add dark theme variables here */
}