/* Custom Styles for ChulaConsuelo.com */

/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
.font-display {
    font-family: 'Playfair Display', serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

/* Navigation enhancements */
.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Button animations */
.btn-hover-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-glow: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-hover-glow:hover:before {
    left: 100%;
}

/* Card styles */
.profile-card {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(60, 30, 90, 0.6));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.profile-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

/* Badge styles */
.badge-premium {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #000;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.badge-verified {
    background: linear-gradient(45deg, #10b981, #34d399);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-silver {
    background: linear-gradient(45deg, #c0c0c0, #e5e5e5);
    color: #000;
}

.badge-gold {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #000;
}

/* Form styles */
.form-input {
    background: rgba(30, 30, 60, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-select {
    background: rgba(30, 30, 60, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: white;
    width: 100%;
    cursor: pointer;
}

.form-select option {
    background: #1e1e3c;
    color: white;
}

/* Filter styles */
.filter-chip {
    background: rgba(30, 30, 60, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.filter-chip:hover,
.filter-chip.active {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    border-color: transparent;
    transform: translateY(-1px);
}

/* Image gallery styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    aspect-ratio: 1;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Modal styles */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95), rgba(60, 30, 90, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 5rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95), rgba(60, 30, 90, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

/* Price display */
.price-display {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Availability indicator */
.availability-online {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
}

.availability-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.availability-offline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.availability-offline::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #6b7280;
    border-radius: 50%;
}

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

/* Star rating */
.star-rating {
    display: flex;
    gap: 0.125rem;
    align-items: center;
}

.star-filled {
    color: #ffd700;
}

.star-empty {
    color: #374151;
}

/* City filter styles */
.city-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.city-option {
    background: rgba(30, 30, 60, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.city-option:hover,
.city-option.selected {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    border-color: transparent;
    transform: translateY(-1px);
}

/* Age range slider */
.age-slider {
    width: 100%;
    margin: 1rem 0;
}

.age-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(139, 92, 246, 0.3);
    outline: none;
}

.age-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

.age-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

/* Dashboard styles */
.dashboard-card {
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(60, 30, 90, 0.6));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dashboard-stat {
    text-align: center;
    padding: 1rem;
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Messages */
.message-bubble {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(236, 72, 153, 0.6));
    border-radius: 18px 18px 4px 18px;
    padding: 0.75rem 1rem;
    max-width: 80%;
    margin: 0.5rem 0;
    align-self: flex-end;
}

.message-bubble.received {
    background: rgba(30, 30, 60, 0.8);
    border-radius: 18px 18px 18px 4px;
    align-self: flex-start;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

/* Payment cards */
.payment-method {
    background: rgba(30, 30, 60, 0.8);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-method:hover,
.payment-method.selected {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.payment-method.selected::after {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #10b981;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-card {
        padding: 1rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem;
    }
    
    .gallery-main {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .city-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .toast {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
    
    .city-selector {
        grid-template-columns: 1fr;
    }
    
    .message-bubble {
        max-width: 90%;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .profile-card {
        background: white;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .profile-card {
        border: 2px solid white;
    }
    
    .form-input {
        border: 2px solid white;
    }
    
    button {
        border: 2px solid white;
    }
}

/* Dark mode is default, but adding support for light mode if needed */
@media (prefers-color-scheme: light) {
    /* Light mode styles can be added here if needed */
}

/* Custom utilities */
.gradient-text {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glow-effect {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #8b5cf6;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}