/* Custom CSS voor YourMoments - Yourhosting Huisstijl */

:root {
    /* Yourhosting Primaire kleuren */
    --y-paars: #BC5098;
    --y-roze: #E84985;
    --y-zalm: #FF665E;
    --y-oranje: #FF8657;
    --y-geel: #FFB357;
    
    /* Yourhosting Neutralen */
    --y-zwart: #181818;
    --y-donkergrijs: #535855;
    --y-grijs: #C4C4C4;
    --y-beige: #F3F3EE;
    --y-wit: #FFFFFF;
    
    /* Yourhosting Extra kleuren */
    --y-bruin: #845552;
    --y-rood: #F93B15;
    --y-donkergeel: #E99F00;
    --y-teal: #008C9C;
    
    /* Tinten (30%) */
    --y-paars-30: #EBCAE1;
    --y-roze-30: #F8C8DA;
    --y-zalm-30: #FFD1CF;
    --y-oranje-30: #FFD8CD;
    --y-geel-30: #FFE8CD;
    
    /* Applicatie kleuren gebaseerd op Yourhosting */
    --primary-color: var(--y-roze);
    --primary-dark: var(--y-paars);
    --secondary-color: var(--y-donkergrijs);
    --success-color: var(--y-teal);
    --warning-color: var(--y-geel);
    --danger-color: var(--y-rood);
    --light-color: var(--y-beige);
    --dark-color: var(--y-zwart);
}

/* General Styles - Yourhosting Typografie */
body {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--y-wit);
    color: var(--y-zwart);
    font-size: 16px;
    font-weight: 400;
}

/* Gilroy Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Use Inter as fallback for Gilroy */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--y-zwart);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
    color: var(--y-donkergrijs);
    line-height: 1.6;
    font-size: 16px;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

.text-muted {
    color: #6b7280 !important;
}

/* Yourhosting kleuraccenten in tekst */
.text-accent {
    color: var(--y-roze);
    font-weight: 600;
}

/* Yourhosting Utility Classes */
.text-y-paars { color: var(--y-paars) !important; }
.text-y-roze { color: var(--y-roze) !important; }
.text-y-zalm { color: var(--y-zalm) !important; }
.text-y-oranje { color: var(--y-oranje) !important; }
.text-y-geel { color: var(--y-geel) !important; }
.text-y-teal { color: var(--y-teal) !important; }
.text-y-bruin { color: var(--y-bruin) !important; }
.text-y-rood { color: var(--y-rood) !important; }
.text-y-donkergeel { color: var(--y-donkergeel) !important; }

.bg-y-paars { background-color: var(--y-paars) !important; }
.bg-y-roze { background-color: var(--y-roze) !important; }
.bg-y-zalm { background-color: var(--y-zalm) !important; }
.bg-y-oranje { background-color: var(--y-oranje) !important; }
.bg-y-geel { background-color: var(--y-geel) !important; }
.bg-y-teal { background-color: var(--y-teal) !important; }
.bg-y-bruin { background-color: var(--y-bruin) !important; }
.bg-y-rood { background-color: var(--y-rood) !important; }
.bg-y-donkergeel { background-color: var(--y-donkergeel) !important; }
.bg-y-beige { background-color: var(--y-beige) !important; }
.bg-y-grijs { background-color: var(--y-grijs) !important; }
.bg-y-donkergrijs { background-color: var(--y-donkergrijs) !important; }
.bg-y-zwart { background-color: var(--y-zwart) !important; }
.bg-y-wit { background-color: var(--y-wit) !important; }

.bg-gradient {
    background: linear-gradient(135deg, var(--y-roze) 0%, var(--y-paars) 50%, var(--y-zalm) 100%);
}

.bg-gradient-warm {
    background: linear-gradient(135deg, var(--y-oranje) 0%, var(--y-geel) 100%);
}

.bg-gradient-cool {
    background: linear-gradient(135deg, var(--y-paars) 0%, var(--y-teal) 100%);
}

.step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: var(--y-wit);
    color: var(--y-zwart);
    padding: 80px 0;
}

/* Cards */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
    background-color: var(--y-wit);
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
    background: linear-gradient(135deg, var(--y-roze-30) 0%, var(--y-zalm-30) 100%);
    border-bottom: 1px solid var(--y-grijs);
}

.card-primary {
    border-left: 4px solid var(--y-roze);
}

.card-secondary {
    border-left: 4px solid var(--y-teal);
}

.card-accent {
    border-left: 4px solid var(--y-geel);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--y-roze) 0%, var(--y-paars) 100%);
    border: none;
    color: var(--y-wit);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--y-paars) 0%, var(--y-zalm) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 73, 133, 0.4);
    color: var(--y-wit);
}

.btn-secondary {
    background: var(--y-donkergrijs);
    border: none;
    color: var(--y-wit);
}

.btn-secondary:hover {
    background: var(--y-zwart);
    color: var(--y-wit);
}

.btn-success {
    background: var(--y-teal);
    border: none;
    color: var(--y-wit);
}

.btn-warning {
    background: var(--y-geel);
    border: none;
    color: var(--y-zwart);
}

.btn-danger {
    background: var(--y-rood);
    border: none;
    color: var(--y-wit);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar {
    padding: 1rem 0;
}

/* Stats */
.stat-item h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--y-roze);
    background-color: rgba(232, 73, 133, 0.05);
}

.upload-area.dragover {
    border-color: var(--y-roze);
    background-color: rgba(232, 73, 133, 0.1);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

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

.gallery-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

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

/* QR Code */
.qr-code-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

/* Event Creation Form */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--y-roze);
    box-shadow: 0 0 0 0.2rem rgba(232, 73, 133, 0.25);
}

/* Theme Selection */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.theme-option {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.theme-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.theme-option input[type="radio"]:checked + .theme-preview {
    border: 3px solid var(--y-roze);
}

.theme-preview {
    height: 150px;
    border: 3px solid transparent;
    border-radius: 15px;
    transition: border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-preview::after {
    content: attr(data-theme);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 500;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-item {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.slideshow-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--y-roze) 0%, var(--y-paars) 100%);
    transition: width 0.1s linear;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 60px 0 !important;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .stats-section .col-md-3 {
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)) !important;
        gap: 10px !important;
    }
    
    .theme-selector {
        grid-template-columns: 1fr;
    }
    
    /* Event Page Mobile Optimizations */
    .event-stats {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .event-stats > div {
        width: 100% !important;
    }
    
    .upload-zone {
        padding: 2rem 1rem !important;
    }
    
    .gallery-item {
        height: 180px !important;
    }
    
    .gallery-item img,
    .gallery-item video {
        height: 180px !important;
    }
    
    /* Mobile-friendly buttons */
    .btn-lg {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Improved touch targets */
    .gallery-item {
        cursor: pointer;
        touch-action: manipulation;
    }
    
    /* Better mobile typography */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    
    /* Mobile-specific spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .gallery-item {
        height: 150px !important;
    }
    
    .gallery-item img,
    .gallery-item video {
        height: 150px !important;
    }
    
    .upload-zone {
        padding: 1.5rem 0.75rem !important;
    }
    
    .event-header .d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .btn-group {
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
    }
}

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

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

/* Event Page */
/* Clean event header styling */
.event-stats .stat-item {
    padding: 0.5rem 0;
}

.event-stats .stat-item i {
    width: 20px;
    text-align: center;
}

.event-code {
    font-size: 2rem;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--y-grijs);
    border-top: 3px solid var(--y-roze);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast Notifications */
.toast {
    border-radius: 10px;
}

/* Custom File Input */
.custom-file-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.custom-file-label {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.custom-file-label:hover {
    border-color: var(--y-roze);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* Social Share */
.social-share {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.social-share .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Theme-specific backgrounds met Yourhosting kleuren */
.theme-default .theme-preview {
    background: linear-gradient(135deg, var(--y-roze) 0%, var(--y-paars) 100%);
}

.theme-wedding .theme-preview {
    background: linear-gradient(135deg, var(--y-zalm-30) 0%, var(--y-roze-30) 100%);
}

.theme-birthday .theme-preview {
    background: linear-gradient(135deg, var(--y-geel) 0%, var(--y-oranje) 100%);
}

.theme-business .theme-preview {
    background: linear-gradient(135deg, var(--y-donkergrijs) 0%, var(--y-teal) 100%);
}

.theme-vacation .theme-preview {
    background: linear-gradient(135deg, var(--y-teal) 0%, var(--y-geel) 100%);
}

.theme-christmas .theme-preview {
    background: linear-gradient(135deg, var(--y-rood) 0%, var(--y-donkergeel) 100%);
}

/* Yourhosting Accent Elements */
.navbar {
    background-color: var(--y-wit) !important;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.navbar-brand {
    color: var(--y-paars) !important;
    font-weight: 700;
    font-size: 24px;
}

.navbar-nav .nav-link {
    color: var(--y-donkergrijs) !important;
    font-weight: 500;
    padding: 8px 16px !important;
}

.navbar-nav .nav-link:hover {
    color: var(--y-roze) !important;
}

/* Yourhosting Spontane Illustratie Elementen */
.spontane-accent {
    position: relative;
}

.spontane-accent::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,5 Q25,0 50,5 T100,5' stroke='%23E84985' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x;
    background-size: 100px 10px;
}

.doodle-arrow {
    position: relative;
}

.doodle-arrow::before {
    content: "↗";
    position: absolute;
    top: -10px;
    right: -15px;
    color: var(--y-roze);
    font-size: 1.2em;
    opacity: 0.7;
    transform: rotate(15deg);
}

.doodle-circle {
    position: relative;
}

.doodle-circle::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border: 2px solid var(--y-zalm);
    border-radius: 50%;
    opacity: 0.5;
    transform: rotate(-5deg);
    pointer-events: none;
}

.doodle-underline {
    position: relative;
}

.doodle-underline::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: -5px;
    width: calc(100% + 10px);
    height: 2px;
    background: var(--y-geel);
    transform: rotate(-1deg);
    opacity: 0.8;
}

.doodle-star {
    position: relative;
}

.doodle-star::before {
    content: "✨";
    position: absolute;
    top: -8px;
    right: -8px;
    color: var(--y-oranje);
    font-size: 0.8em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}

.vlotte-lijn {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M0,10 Q50,0 100,10 T200,10' stroke='%23FF665E' stroke-width='2' fill='none' opacity='0.6'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 20px;
    padding: 10px 0;
}

/* Spontane hover effecten */
.btn-primary:hover {
    background: linear-gradient(135deg, var(--y-paars) 0%, var(--y-zalm) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 73, 133, 0.4);
    color: var(--y-wit);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(232, 73, 133, 0.15) !important;
} 