/* Mobile-specific optimizations for WeddingCam */

/* Touch-friendly button sizes */
.btn {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Prevent zoom on input focus */
input, textarea, select {
    font-size: 16px;
}

/* Mobile navigation */
@media (max-width: 767px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-text {
        font-size: 0.85rem;
        display: none;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile upload area */
@media (max-width: 767px) {
    .upload-area {
        min-height: 120px;
        padding: 15px;
        margin: 10px 0;
    }
    
    .upload-area i {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }
    
    .upload-area h5 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .upload-area p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

/* Mobile gallery grid */
@media (max-width: 576px) {
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 5px;
    }
    
    .media-item {
        margin-bottom: 10px;
    }
    
    .media-item img, .media-item video {
        height: 120px;
        border-radius: 6px;
    }
    
    .media-overlay {
        font-size: 10px;
        padding: 3px 6px;
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 400px) {
    .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .media-item img, .media-item video {
        height: 200px;
    }
}

/* Mobile modal optimizations */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}

/* Mobile progress bar */
.progress {
    height: 8px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .progress {
        height: 6px;
    }
}

/* Mobile-friendly cards */
@media (max-width: 767px) {
    .card {
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
}

/* Mobile button spacing */
@media (max-width: 767px) {
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Mobile typography */
@media (max-width: 767px) {
    h1, .h1 {
        font-size: 1.8rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Mobile hero section */
@media (max-width: 767px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Mobile feature cards */
@media (max-width: 767px) {
    .feature-card {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .feature-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .feature-card i {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Mobile step indicators */
@media (max-width: 767px) {
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .step {
        padding: 15px 5px;
    }
    
    .step h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .step p {
        font-size: 0.85rem;
    }
}

/* Mobile QR code section */
@media (max-width: 767px) {
    .qr-code-section {
        padding: 30px 0;
    }
}

/* Touch feedback */
.touch-feedback {
    transition: all 0.2s ease;
}

.touch-feedback:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* Mobile-specific animations */
@media (max-width: 767px) {
    .fade-in {
        animation: fadeInMobile 0.3s ease-in;
    }
    
    @keyframes fadeInMobile {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Prevent text selection on buttons */
.btn, .upload-area, .media-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mobile scrollbar styling */
@media (max-width: 767px) {
    ::-webkit-scrollbar {
        width: 4px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 2px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}
