/* ============================================
   CLICKAWEDDING CUSTOM STYLES
   Professional unified CSS for the entire application
   Uses Bootstrap as base, custom styles for brand/specific needs
   ============================================ */

/* ============================================
   BRAND COLORS & VARIABLES
   ============================================ */
:root {
    --brand-primary: #e91e63;
    --brand-primary-dark: #d81b60;
    --brand-primary-light: #f50057;
    --brand-primary-hover: rgba(233, 30, 99, 0.1);
    --brand-shadow: rgba(233, 30, 99, 0.25);
}

/* ============================================
   CUSTOM BUTTONS (extending Bootstrap)
   ============================================ */

/* Primary gradient button - extends Bootstrap .btn */
.btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 2px 8px var(--brand-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-brand-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
    background: linear-gradient(135deg, var(--brand-primary-light) 0%, var(--brand-primary) 100%);
    color: white;
}

.btn-brand-primary:hover::before {
    left: 100%;
}

.btn-brand-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px var(--brand-shadow);
}

/* Filter button height - matches form control height */
.btn-filter-height {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* ============================================
   ICON UTILITIES
   ============================================ */

/* Has icon focus - container for inputs with icon */
.has-icon-focus {
    position: relative;
    display: block;
}

/* Animated icon positioned absolutely within parent */
.icon-absolute {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

/* Focus state for icon */
.has-icon-focus:focus-within .icon-absolute {
    color: var(--brand-primary);
    transform: translateY(-50%) scale(1.05);
}

/* ============================================
   FILTER COMPONENTS
   ============================================ */

/* Active filters container */
.active-filters-container {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

/* Active filters label */
.active-filters-label {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

/* Filter count badge */
.filter-count-badge {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    animation: badgePulse 0.3s ease-out;
}

/* Clear all filters button */
.clear-all-filters {
    background: white;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.clear-all-filters:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(233, 30, 99, 0.25);
}

/* Filter chip badges */
.filter-chip {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 24px;
    margin: 4px 6px 4px 0;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
    animation: chipFadeIn 0.3s ease-out;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

.filter-chip-remove {
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    line-height: 1;
}

.filter-chip-remove:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
}

.filter-chip-label {
    font-size: 11px;
    opacity: 0.85;
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Filter loading state */
.filter-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

/* ============================================
   INPUT UTILITIES (extending Bootstrap)
   ============================================ */

/* Input with icon - add padding for icon space */
.input-with-icon {
    padding-left: 45px;
}

/* Enhanced form control with brand focus */
.form-control-brand {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 48px;
    font-size: 15px;
}

.form-control-brand:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1), 0 2px 8px rgba(233, 30, 99, 0.12);
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

@keyframes chipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes badgePulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

/* Remove tap highlight on mobile */
.no-tap-highlight {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

/* Loading spinner overlay */
.loading-overlay {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--brand-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   MOBILE RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .filter-chip {
        font-size: 13px;
        padding: 8px 14px;
        margin: 3px 4px 3px 0;
    }

    .filter-chip-label {
        font-size: 10px;
        margin-right: 5px;
    }

    .filter-chip-remove {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-left: 8px;
    }
}
