/* Photos page specific styles */


.photo-upload-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Mobile Upload Interface */
.mobile-upload-interface {
    display: none;
    margin-bottom: 1.5rem;
}

.upload-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.upload-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 120px;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.upload-option-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.upload-option-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.option-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.option-text {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.option-subtext {
    font-size: 0.85rem;
    color: #5a6c7d;
    text-align: center;
    opacity: 0.8;
}

/* Desktop Upload Container */
.desktop-upload-container {
    display: block;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    min-height: 180px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.desktop-upload-container:hover {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.desktop-upload-container.dragover {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.9);
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}

/* Selected Files Header */
.selected-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #d4af37;
    transform: translateY(-1px);
}

.action-btn.danger {
    border-color: rgba(220, 53, 69, 0.4);
    color: #dc3545;
}

.action-btn.danger:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
}

.simple-upload-container {
    border: 2px dashed #d4af37;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    margin: 1rem 0;
}

.simple-upload-container:hover {
    border-color: #b8941f;
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.simple-upload-container.dragover {
    border-color: #b8941f;
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
}

/* Upload icon styling inherited from main style.css */

.simple-upload-container .upload-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.simple-upload-container .upload-subtext {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.simple-upload-container .upload-hint {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.simple-progress {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    margin: 1rem 0;
}

.simple-progress h3 {
    margin-bottom: 1rem;
    color: #333;
}

.progress-bar-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #b8941f);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.upload-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.photo-upload-form {
    max-width: 600px;
    margin: 0 auto;
}

.mobile-photo-options {
    display: none;
    margin-bottom: 1rem;
}

.photo-option-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.photo-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 120px;
}

.photo-option-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.option-icon {
    font-size: 2rem;
}

.option-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    font-family: 'Montserrat', sans-serif;
}

.file-upload-container {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.file-upload-container:hover {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.file-upload-container.dragover {
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.9);
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}

.upload-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px auto;
    background: linear-gradient(135deg, #d4af37, #f4e4bc);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.upload-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 3px;
}

.upload-icon::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    margin-top: -8px;
}

.upload-text {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 500;
    font-family: 'Cormorant Garamond', serif;
}

.upload-subtext {
    font-size: 1rem;
    color: #5a6c7d;
    margin-bottom: 15px;
}

.upload-hint {
    font-size: 0.9rem;
    color: #5a6c7d;
    opacity: 0.8;
    font-style: italic;
}

.selected-files {
    margin-top: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.selected-files.show {
    display: block;
}

.selected-files h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
}

.photo-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.photo-preview-img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 10px 10px 0 0;
    display: block;
}

.photo-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview-remove:hover {
    background: rgba(255, 0, 0, 1);
}

.upload-progress-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.navigation-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-dark);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    
    .mobile-upload-interface {
        display: block !important;
    }
    
    .desktop-upload-container {
        display: none;
    }
    
    .photo-upload-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .upload-options {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .upload-option-btn {
        padding: 1.25rem 1rem;
        min-height: 100px;
    }
    
    .option-icon {
        font-size: 2rem;
    }
    
    .option-text {
        font-size: 0.95rem;
    }
    
    .option-subtext {
        font-size: 0.8rem;
    }
    
    .selected-files-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    
    .photo-upload-section {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .upload-option-btn {
        padding: 1rem 0.75rem;
        min-height: 90px;
    }
    
    .option-icon {
        font-size: 1.8rem;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
    
    .option-subtext {
        font-size: 0.75rem;
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.4rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .mobile-photo-options {
        display: block !important;
    }
    
    .file-upload-container {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .upload-icon {
        font-size: 2.5rem;
    }
}

/* Sticky Upload Button */
.sticky-upload-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-upload-container.show {
    transform: translateY(0);
}

.sticky-upload-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
    gap: 1rem;
}

.sticky-upload-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-dark, #333);
}

.sticky-count {
    background: var(--accent-gold, #d4af37);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.sticky-text {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
}

.sticky-upload-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold, #d4af37) 0%, var(--accent-gold-dark, #b8941f) 100%);
    color: white;
    border: 2px solid var(--accent-gold, #d4af37);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 120px;
    justify-content: center;
}

.sticky-upload-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-gold-dark, #b8941f) 0%, var(--accent-gold, #d4af37) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.sticky-upload-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.sticky-upload-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.sticky-upload-btn .btn-icon {
    font-size: 1rem;
}

.sticky-upload-btn .btn-text {
    font-weight: 600;
}

/* Mobile optimizations for sticky button */
@media (max-width: 768px) {
    .sticky-upload-container {
        padding: 0.75rem;
    }
    
    .sticky-upload-content {
        gap: 0.75rem;
    }
    
    .sticky-upload-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .sticky-count {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .sticky-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sticky-upload-container {
        padding: 0.5rem;
    }
    
    .sticky-upload-content {
        gap: 0.5rem;
    }
    
    .sticky-upload-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    .sticky-count {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }
    
    .sticky-text {
        font-size: 0.75rem;
    }
}

/* Force White Background for Choose Photos Button - Higher Specificity */
.photo-upload-section .upload-options .upload-option-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
}

.photo-upload-section .upload-options .upload-option-btn:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    background-image: none !important;
}

.photo-upload-section .upload-options .upload-option-btn:active,
.photo-upload-section .upload-options .upload-option-btn:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
}

/* Mobile Button Consistency - Choose Photos Only */
@media (max-width: 768px) {
    .photo-upload-section .upload-options .upload-option-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem 1rem !important;
        min-height: 120px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.9) !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        background-image: none !important;
    }
}

@media (max-width: 480px) {
    .photo-upload-section .upload-options .upload-option-btn {
        padding: 1.25rem 0.75rem !important;
        min-height: 100px !important;
    }
}