/* Premium Christian Wedding Theme */
:root {
    --primary-cream: #faf8f5;
    --soft-blush: #f8e5e5;
    --rose-gold: #d4a59a;
    --champagne: #f7e7ce;
    --ivory: #fffff0;
    --soft-gray: #e8e8e8;
    --text-primary: #4a4a4a;
    --text-secondary: #8b8b8b;
    --accent-gold: #d4af37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-cream) 0%, var(--champagne) 50%, var(--soft-blush) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
}

.main-container {
    padding: 2rem 0;
}

/* Header Styles */
header {
    animation: fadeInDown 1s ease-out;
}

/* Loading Screen */
.loading-screen {
    max-width: 900px;
    margin: 3rem auto;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(212, 165, 154, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

.loading-content {
    text-align: center;
}

.spinner-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid var(--soft-gray);
    border-top: 6px solid var(--rose-gold);
    border-right: 6px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--rose-gold), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.loading-subtext {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--rose-gold), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Accordion Styles */
.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px !important;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 30px rgba(212, 165, 154, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.accordion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(212, 165, 154, 0.25);
}

.accordion-button {
    background: linear-gradient(135deg, var(--ivory), var(--soft-blush));
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 1.5rem 2rem;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--soft-blush), var(--rose-gold));
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d4a59a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

logo {
  display: block;
  margin: auto;
  width: 50%;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    margin-right: 1rem;
    font-weight: 600;
    color: var(--rose-gold);
    box-shadow: 0 4px 15px rgba(212, 165, 154, 0.2);
}

.accordion-button:not(.collapsed) .step-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.accordion-body {
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed var(--rose-gold);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(248, 229, 229, 0.3));
}

.upload-zone:hover {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 229, 229, 0.5));
    transform: scale(1.02);
}

.upload-label {
    cursor: pointer;
    display: block;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.upload-label:hover {
    color: var(--rose-gold);
}

.upload-label svg {
    color: var(--rose-gold);
    transition: transform 0.3s ease;
}

.upload-label:hover svg {
    transform: translateY(-10px);
}

.image-preview {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Polaroid Options */
.polaroid-option {
    cursor: pointer;
    display: block;
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 5px 20px rgba(212, 165, 154, 0.1);
}

.polaroid-option:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 165, 154, 0.25);
    border-color: var(--rose-gold);
}

.polaroid-option img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.polaroid-option:hover img {
    transform: scale(1.05);
}

.btn-check:checked + .polaroid-option {
    border-color: var(--accent-gold);
    background: linear-gradient(135deg, var(--soft-blush), rgba(255, 255, 255, 0.9));
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.polaroid-option span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Color Theme Buttons */
.color-theme-btn {
    width: 100%;
    padding: 3rem 2rem;
    border: 3px solid transparent;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(212, 165, 154, 0.15);
    position: relative;
    overflow: hidden;
}

.color-theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.color-theme-btn:hover::before {
    left: 100%;
}

.light-theme {
    background: linear-gradient(135deg, #ffffff, var(--champagne));
}

.light-theme:hover, .light-theme.active {
    border-color: var(--accent-gold);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.dark-theme {
    background: linear-gradient(135deg, #6a6a6a, #4a4a4a);
    color: white;
}

.dark-theme:hover, .dark-theme.active {
    border-color: var(--rose-gold);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(74, 74, 74, 0.4);
}

.theme-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.color-theme-btn h4 {
    margin: 0.5rem 0;
    font-weight: 600;
}

.color-theme-btn p {
    margin: 0;
    opacity: 0.8;
}

/* Confirmation Section */
.confirmation-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(212, 165, 154, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.preview-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.scrollable-preview {
    max-height: 480px;
    overflow-y: auto;
    border-radius: 10px;
    padding: 1rem;
    background: var(--soft-gray);
}

.scrollable-preview::-webkit-scrollbar {
    width: 8px;
}

.scrollable-preview::-webkit-scrollbar-track {
    background: var(--soft-gray);
    border-radius: 10px;
}

.scrollable-preview::-webkit-scrollbar-thumb {
    background: var(--rose-gold);
    border-radius: 10px;
}

.scrollable-preview img {
    max-width: 100%;
    border-radius: 10px;
}

.selection-summary {
    background: linear-gradient(135deg, var(--soft-blush), var(--ivory));
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 165, 154, 0.2);
}

.summary-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

.submit-btn {
    background: linear-gradient(135deg, var(--rose-gold), var(--accent-gold));
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 165, 154, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 165, 154, 0.4);
    background: linear-gradient(135deg, var(--accent-gold), var(--rose-gold));
}

/* Results Section */
.results-section {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(212, 165, 154, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.result-card {
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(212, 165, 154, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(212, 165, 154, 0.25);
}

.result-card-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.result-card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--soft-gray);
}

.result-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.result-detail-item {
    display: flex;
    flex-direction: column;
}

.result-detail-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.result-detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

.download-all-btn {
    background: linear-gradient(135deg, var(--rose-gold), var(--accent-gold));
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 165, 154, 0.3);
    display: inline-flex;
    align-items: center;
}

.download-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 165, 154, 0.4);
    background: linear-gradient(135deg, var(--accent-gold), var(--rose-gold));
}

.btn-icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border-color: var(--rose-gold);
    color: var(--rose-gold);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--rose-gold);
    border-color: var(--rose-gold);
    color: white;
    transform: scale(1.05);
}

.btn-outline-secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--text-secondary);
    border-color: var(--text-secondary);
    color: white;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Gallery Styles */
.image-gallery {
    animation: fadeIn 0.5s ease-out;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(212, 165, 154, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 0.5rem;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 165, 154, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.gallery-item-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}

.gallery-item:hover .gallery-item-remove {
    opacity: 1;
}

.gallery-item-remove:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* Preview Grid for Confirmation */
.scrollable-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 480px;
    overflow-y: auto;
    border-radius: 10px;
    padding: 1rem;
    background: var(--soft-gray);
}

.preview-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.preview-thumb:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .accordion-button {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .upload-zone {
        padding: 2rem 1rem;
    }

    .color-theme-btn {
        padding: 2rem 1.5rem;
    }

    .theme-icon {
        font-size: 2.5rem;
    }

    .confirmation-section,
    .results-section {
        padding: 1.5rem;
    }

    .selection-summary {
        margin-top: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .gallery-item img {
        height: 120px;
    }

    .results-container {
        gap: 1.5rem;
    }

    .result-card {
        padding: 1rem;
    }

    .result-card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .result-details {
        gap: 1rem;
        width: 100%;
    }

    .result-actions {
        width: 100%;
        justify-content: stretch;
    }

    .result-actions button {
        flex: 1;
    }

    .download-all-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}