/**
 * RSVP Event Management System
 * Custom Styles & Overrides
 */

/* ============================================================
   BASE STYLES
   ============================================================ */

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    display: inline-block;
}

/* ============================================================
   RESPONSIVE IMAGE STYLES FOR MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .event-image,
    .event-hero-image {
        max-height: none !important;
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    
    .event-image-container,
    .event-hero-container {
        max-height: none !important;
        height: auto !important;
    }
    
    .col-12.col-lg-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Smooth transitions for interactive elements */
.card,
.btn,
.form-control {
    transition: all 0.2s ease-in-out;
}

/* ============================================================
   FORM STYLES
   ============================================================ */

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

/* ============================================================
   CARD STYLES
   ============================================================ */

.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
}

.card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Event image container */
.event-image-container {
    position: relative;
    overflow: hidden;
}

/* ============================================================
   BUTTON STYLES
   ============================================================ */

.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: transform 0.1s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn:active {
    transform: scale(0.98);
}

/* ============================================================
   QR CODE STYLES
   ============================================================ */

.qr-code-container {
    display: inline-block;
    padding: 0.5rem;
    background: white;
    border-radius: 0.5rem;
}

.qr-code-container img {
    display: block;
}

/* ============================================================
   BADGE STYLES
   ============================================================ */

.badge {
    font-weight: 500;
    font-size: 0.8rem;
}

/* ============================================================
   HERO IMAGE STYLES (Guest Page)
   ============================================================ */

.event-hero-container {
    overflow: hidden;
    border-radius: 0.75rem;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */

.spinner-border {
    color: #6366f1 !important;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

#app > * {
    animation: fadeIn 0.3s ease-out;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
    .event-hero-image,
    .event-hero-fallback {
        height: 200px !important;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.hidden {
    display: none !important;
}

/* Copy button hover effect */
.copy-link-btn:hover {
    background-color: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Input group styling */
.input-group-sm .form-control {
    font-size: 0.75rem;
}

/* Alert styling for success message */
.alert {
    border-left-width: 4px;
    border-left-style: solid;
}
