/* 2025 Modern Baptism Invitation Styles */

body {
    background: url('background-2025.jpg') no-repeat center center fixed, linear-gradient(135deg, #eaf6fb 0%, #f8f3ef 100%);
    background-size: cover;
    font-family: 'Quicksand', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.invitation-hero {
    text-align: center;
    padding: 48px 0 24px 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(2px);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 8px 32px rgba(180, 140, 90, 0.07);
    margin-bottom: 24px;
}

.hero-date {
    font-family: 'Pacifico', cursive;
    font-size: 2.6em;
    color: #7abaff;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 2.1em;
    font-weight: 700;
    color: #b48c5a;
    margin-bottom: 6px;
}

.hero-name {
    color: #7abaff;
    font-family: 'Pacifico', cursive;
    font-size: 1.25em; /* Increased for better uppercase visibility */
    vertical-align: -0.1em; /* Slightly raise to align with text */
    letter-spacing: 0.02em;
    text-transform: none; /* Ensure no forced lowercase */
}

.hero-subtitle {
    font-size: 1.2em;
    color: #6d6d6d;
    margin-bottom: 0;
}

.invitation-container {
    background: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 0 auto 40px auto;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(180, 140, 90, 0.10);
    padding: 32px 24px 24px 24px;
    position: relative;
    z-index: 1;
}

.invitation-text-modern {
    font-size: 1.18em;
    color: #3a2c1a;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 32px;
    background: rgba(234, 246, 251, 0.5);
    border-radius: 20px;
    padding: 24px 18px;
    box-shadow: 0 2px 12px rgba(122,186,255,0.07);
}

.highlight-name {
    color: #b48c5a;
    font-weight: 700;
}

/* Gallery Styles */
.gallery-section {
    background: rgba(234, 246, 251, 0.7);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(180, 140, 90, 0.08);
    padding: 32px 24px;
    margin: 32px auto;
    text-align: center;
}

.gallery-title {
    color: #7abaff;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 24px;
    font-family: 'Pacifico', cursive;
}

.gallery-upload {
    margin-bottom: 32px;
}

.upload-btn {
    background: linear-gradient(90deg, #7abaff 60%, #b48c5a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(122,186,255,0.15);
}

.upload-btn:hover {
    background: linear-gradient(90deg, #b48c5a 60%, #7abaff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 140, 90, 0.2);
}

.upload-info {
    color: #6d6d6d;
    margin-top: 12px;
    font-size: 0.9em;
}

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

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(122,186,255,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(180, 140, 90, 0.2);
}

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

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.photo-overlay button {
    background: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    margin: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.photo-overlay button:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.upload-progress {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.progress-text {
    color: #7abaff;
    font-weight: 600;
}

/* Event Details Styles */
.event-details-section {
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 24px;
    margin: 32px auto;
    box-shadow: 0 2px 8px rgba(180, 140, 90, 0.07);
}

.details-title {
    color: #7abaff;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Pacifico', cursive;
}

.event-moments {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.moment {
    display: flex;
    align-items: center;
    background: rgba(234, 246, 251, 0.5);
    border-radius: 12px;
    padding: 16px;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(122,186,255,0.10);
}

.moment-icon {
    font-size: 2em;
    margin-right: 16px;
}

.moment-info h4 {
    color: #b48c5a;
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 700;
}

.moment-info p {
    color: #3a2c1a;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

.modal-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

.download-btn {
    background: linear-gradient(90deg, #7abaff 60%, #b48c5a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(122,186,255,0.3);
}

.download-btn:hover {
    background: linear-gradient(90deg, #b48c5a 60%, #7abaff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(180, 140, 90, 0.4);
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 1002;
}

.nav-arrow:hover {
    background: rgba(122, 186, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow-left {
    left: 30px;
}

.nav-arrow-right {
    right: 30px;
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Photo Counter */
.photo-counter {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 12px;
}

.modal-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin Authentication Styles */
.admin-login {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 24px;
    margin: 20px auto;
    max-width: 400px;
    box-shadow: 0 4px 16px rgba(180, 140, 90, 0.15);
    border: 2px solid #7abaff;
}

.login-form {
    text-align: center;
}

.login-form h3 {
    color: #7abaff;
    margin-bottom: 16px;
    font-family: 'Pacifico', cursive;
}

.login-form p {
    color: #6d6d6d;
    margin-bottom: 16px;
    font-size: 0.95em;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #7abaff;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 16px;
    box-sizing: border-box;
    background: #f8f3ef;
    color: #3a2c1a;
}

.login-form input[type="password"]:focus {
    outline: none;
    border-color: #b48c5a;
    box-shadow: 0 0 0 3px rgba(122, 186, 255, 0.1);
}

.login-btn {
    background: linear-gradient(90deg, #7abaff 60%, #b48c5a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(90deg, #b48c5a 60%, #7abaff 100%);
    transform: translateY(-2px);
}

.cancel-btn {
    background: #ccc;
    color: #666;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #bbb;
}

.logout-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* Admin Status Indicator */
.admin-status {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 16px;
    text-align: center;
    color: #2e7d32;
    font-weight: 600;
}

.admin-status::before {
    content: "✅ ";
    margin-right: 8px;
}

.location-section-modern {
    background: rgba(234, 246, 251, 0.7);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(180, 140, 90, 0.08);
    padding: 24px 18px 18px 18px;
    margin: 32px auto 32px auto;
    max-width: 600px;
    text-align: center;
    position: relative;
}

.location-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.location-section-modern h3 {
    color: #7abaff;
    margin-bottom: 10px;
    font-size: 1.3em;
    font-weight: 700;
}

.location-section-modern p {
    margin: 4px 0;
    color: #3a2c1a;
    font-size: 1.08em;
}

.map-container {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(122,186,255,0.10);
}

.confirmation-form-modern {
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 24px 18px;
    box-shadow: 0 2px 8px rgba(180, 140, 90, 0.07);
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.confirmation-form-modern label {
    font-weight: 500;
    color: #b48c5a;
}

.confirmation-form-modern input[type="text"],
.confirmation-form-modern select {
    padding: 10px;
    border-radius: 8px;
    border: 1.5px solid #7abaff;
    font-size: 1em;
    margin-bottom: 8px;
    background: #f8f3ef;
    color: #3a2c1a;
}

.confirmation-form-modern button {
    background: linear-gradient(90deg, #7abaff 60%, #b48c5a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(122,186,255,0.10);
}

.confirmation-form-modern button:hover {
    background: linear-gradient(90deg, #b48c5a 60%, #7abaff 100%);
    box-shadow: 0 4px 16px rgba(180, 140, 90, 0.13);
}

.thankyou-message {
    text-align: center;
    margin-top: 32px;
    background: rgba(234, 246, 251, 0.7);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(180, 140, 90, 0.07);
    color: #7abaff;
    font-size: 1.3em;
    font-weight: 700;
}

#names-container {
    display: flex;
    flex-direction: column;
    gap: 14px; /* Adds vertical space between each name field */
    margin-bottom: 8px; /* Adds space below the group */
}

.name-menu-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.name-menu-row input[type="text"],
.name-menu-row select {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

@media (max-width: 600px) {
    .name-menu-row {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .name-menu-row label,
    .name-menu-row input,
    .name-menu-row select {
        width: 100%;
        margin-left: 0 !important;
        box-sizing: border-box;
    }
}

@media (max-width: 700px) {
    .invitation-hero {
        padding: 32px 0 16px 0;
    }
    .invitation-container {
        padding: 12px 2vw;
    }
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .photo-item img {
        height: 150px;
    }
    .event-moments {
        flex-direction: column;
    }
    .moment {
        min-width: auto;
    }
    .modal-content {
        max-width: 95vw;
        max-height: 70vh;
    }
    .gallery-section {
        padding: 24px 16px;
    }
    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .nav-arrow-left {
        left: 15px;
    }
    .nav-arrow-right {
        right: 15px;
    }
    .photo-counter {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

@media (max-width: 400px) {
    .countdown-modern {
        gap: 6px;
    }
    .countdown-circle-modern {
        width: 44px;
        height: 44px;
    }
    .countdown-value {
        font-size: 0.95em;
    }
    .countdown-label {
        font-size: 0.7em;
    }
}

/* Bulk Download Section */
.bulk-download-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bulk-download-section h3 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-weight: 700;
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.bulk-download-btn, .favorites-download-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.favorites-download-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.bulk-download-btn:hover, .favorites-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.favorites-download-btn:hover {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.bulk-download-btn:disabled, .favorites-download-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
    opacity: 0.6;
}

.download-info {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin: 0;
    font-style: italic;
}

/* Favorites functionality */
.favorite-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 600;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #007bff;
    transform: scale(1.05);
}

.favorite-btn.favorite-active {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
    border-color: #ff3838;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.photo-overlay .favorite-btn {
    margin-left: 8px;
    padding: 6px 10px;
    font-size: 1em;
}

/* Modal favorite button */
.modal-controls .favorite-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.modal-controls .favorite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.modal-controls .favorite-btn.favorite-active {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.modal-controls .favorite-btn.favorite-active:hover {
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bulk-download-btn, .favorites-download-btn {
        min-width: 250px;
        max-width: 100%;
    }
    
    .bulk-download-section {
        padding: 20px 15px;
        margin: 20px 10px;
    }
    
    .photo-overlay .favorite-btn {
        padding: 4px 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .bulk-download-btn, .favorites-download-btn {
        min-width: 200px;
        padding: 12px 20px;
        font-size: 0.9em;
    }
    
    .modal-controls .favorite-btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }
} 