/* Wedding Photo Upload App - Custom Styles */

/* Common styles */
body {
    background: linear-gradient(135deg, #8fa2c7 0%, #b8a8d6 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}

.wedding-header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.wedding-header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.wedding-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Mobile responsive headers */
@media (max-width: 767.98px) {
    .wedding-header h1 {
        font-size: 2rem;
    }
    .wedding-header p {
        font-size: 1rem;
    }
}

/* Login page specific styles */
body.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    margin: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideInFade 0.8s ease-out forwards;
}

@keyframes slideInFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container .wedding-header {
    color: #8fa2c7;
    margin-top: 0;
}

.login-container .wedding-header h1 {
    font-size: 2.5rem;
}

.login-container .wedding-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #6c757d;
}

@media (max-width: 767.98px) {
    .login-container .wedding-header h1 {
        font-size: 1.8rem;
    }
    .login-container .wedding-header p {
        font-size: 0.95rem;
    }
}

.question-box {
    background: #f8f9fa;
    border-left: 4px solid #8fa2c7;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 10px 10px 0;
}

.question-box h4 {
    color: #8fa2c7;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.question-box p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: #8fa2c7;
    box-shadow: 0 0 0 0.2rem rgba(143, 162, 199, 0.25);
}

.btn-login {
    background: linear-gradient(45deg, #8fa2c7, #b8a8d6);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: 100%;
}

.btn-login:hover {
    background: linear-gradient(45deg, #7d92ba, #a896c4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.heart-icon {
    color: #e91e63;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.info-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Upload page specific styles */
.upload-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.drag-drop-area {
    border: 3px dashed #dee2e6;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.drag-drop-area:hover {
    border-color: #8fa2c7;
    background-color: #e9ecef;
}

.drag-drop-area.dragover {
    border-color: #b8a8d6;
    background-color: #f3f0f8;
}

.upload-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.btn-upload {
    background: linear-gradient(45deg, #8fa2c7, #b8a8d6);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-upload:hover {
    background: linear-gradient(45deg, #7d92ba, #a896c4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.progress-container {
    display: none;
    margin-top: 1rem;
}

.file-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.5rem;
    background-color: #f8f9fa;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.file-item:last-child {
    border-bottom: none;
}

.remove-file {
    color: #dc3545;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* Gallery page specific styles */
.gallery-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.user-section {
    margin-bottom: 3rem;
}

.user-title {
    background: linear-gradient(45deg, #8fa2c7, #b8a8d6);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.user-title h3 {
    margin: 0;
    font-weight: 500;
}

.user-title .file-count {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

.photo-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem 0.75rem 0.75rem;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.video-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.btn-nav {
    background: linear-gradient(45deg, #8fa2c7, #b8a8d6);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav:hover {
    background: linear-gradient(45deg, #7d92ba, #a896c4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

.empty-gallery {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-gallery i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border: none;
    background: linear-gradient(45deg, #8fa2c7, #b8a8d6);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-body {
    padding: 0;
    text-align: center;
}

.modal-body img, .modal-body video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0 0 15px 15px;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

.logout-link:hover {
    opacity: 1 !important;
    text-decoration: none !important;
}

/* Modal navigation buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s ease;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
}

.modal-body:hover .modal-nav-btn {
    opacity: 0.8;
    visibility: visible;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1 !important;
    color: white;
    text-decoration: none;
}

.modal-nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(143, 162, 199, 0.5);
}

.modal-nav-prev {
    left: 15px;
}

.modal-nav-next {
    right: 15px;
}

/* Hide navigation buttons on small screens */
@media (max-width: 576px) {
    .modal-nav-btn {
        font-size: 1.2rem;
        padding: 10px 15px;
    }
    
    .modal-nav-prev {
        left: 10px;
    }
    
    .modal-nav-next {
        right: 10px;
    }
}