/* Premium CSS for Wedding Memories Uploader */

:root {
    --bg-color: #fbf9f6;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(220, 203, 179, 0.4);
    --text-primary: #3d3332;
    --text-secondary: #706261;
    --gold-primary: #c5a059;
    --gold-light: #e5cf9e;
    --gold-dark: #a07d39;
    --accent-red: #d37d7a;
    --accent-green: #7fa87f;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', Helvetica, Arial, sans-serif;
    --font-vibe: 'Great Vibes', cursive;
    --shadow: 0 10px 30px rgba(74, 62, 61, 0.05);
    --shadow-hover: 0 15px 40px rgba(74, 62, 61, 0.1);
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Soft Decoration Shapes */
.background-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 {
    width: 40vw;
    height: 40vw;
    background-color: #f2e2d2;
    top: -10vw;
    right: -10vw;
}

.circle-2 {
    width: 50vw;
    height: 50vw;
    background-color: #e5ebdf;
    bottom: -15vw;
    left: -15vw;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

/* Wedding Header styling */
.wedding-header {
    text-align: center;
    margin-bottom: 40px;
}

.vibe-title {
    font-family: var(--font-vibe);
    font-size: 2.2rem;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.wedding-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.date-location {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Divider leaf decoration */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--gold-light);
}

.divider .leaf {
    margin: 0 15px;
    color: var(--gold-primary);
    font-size: 1.2rem;
}

/* Hero Banner Image */
.hero-banner-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 20px auto 25px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(74, 62, 61, 0.08);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.hero-banner-wrapper:hover {
    box-shadow: 0 15px 35px rgba(74, 62, 61, 0.12);
    transform: translateY(-2px);
}

.hero-banner-img {
    width: 100%;
    height: 340px;
    max-height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius-lg);
}

.welcome-msg {
    max-width: 550px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Upload Section */
.upload-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(15px);
    margin-bottom: 40px;
    transition: var(--transition);
}

.security-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(220, 203, 179, 0.15);
    border: 1px solid rgba(220, 203, 179, 0.3);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.security-badge .lock-icon {
    margin-right: 6px;
}

/* Drag and drop zone */
.drop-zone {
    border: 2px dashed rgba(197, 160, 89, 0.4);
    border-radius: var(--radius-lg);
    background-color: rgba(251, 249, 246, 0.5);
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.drop-zone:hover,
.drop-zone.dragover {
    background-color: rgba(197, 160, 89, 0.05);
    border-color: var(--gold-primary);
    transform: scale(1.01);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
    transition: var(--transition);
}

.drop-zone:hover .upload-icon {
    transform: translateY(-5px) scale(1.05);
}

.drop-zone h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.drop-zone p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.file-input-hidden {
    display: none;
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    outline: none;
}

.btn-gold {
    background-color: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-gold:hover {
    background-color: var(--gold-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.btn-gold-fill {
    background-color: var(--gold-primary);
    color: white;
    border: 1px solid var(--gold-primary);
}

.btn-gold-fill:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 5px 10px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.btn-text:hover {
    color: var(--accent-red);
}

.btn-large {
    width: 100%;
    padding: 15px 30px;
}

/* Preview Section */
.preview-section {
    margin-top: 30px;
    animation: fadeIn 0.4s ease;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
}

.section-title-row h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.2rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    max-height: 350px;
    overflow-y: auto;
    padding: 5px;
}

.preview-card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    aspect-ratio: 1;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.preview-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    flex-grow: 1;
}

.preview-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f7f5f2;
    border-radius: 4px;
    color: var(--text-secondary);
    padding: 10px;
}

.fallback-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.fallback-name {
    font-size: 0.65rem;
    word-break: break-all;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Remove thumbnail overlay */
.btn-remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(74, 62, 61, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.btn-remove-file:hover {
    background: var(--accent-red);
    transform: scale(1.1);
}

/* Progress Panel */
.upload-control-panel {
    background-color: #fbf9f6;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(220, 203, 179, 0.3);
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar-wrapper {
    background-color: rgba(220, 203, 179, 0.3);
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--gold-light), var(--gold-primary));
    height: 100%;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.progress-status-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Results section */
.results-section {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.results-section h2 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 10px;
}

.results-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.results-list {
    text-align: left;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    background-color: white;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(220, 203, 179, 0.2);
    font-size: 0.85rem;
}

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

.result-file-name {
    font-weight: 500;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-badge {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.result-badge.success {
    background-color: rgba(127, 168, 127, 0.15);
    color: #436d43;
}

.result-badge.error {
    background-color: rgba(211, 125, 122, 0.15);
    color: #8c3b38;
}

/* Footer */
.wedding-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--gold-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--gold-primary);
}