/* TantraMatch.com - Custom CSS with Purple Theme (#C36BFF) */

/* Root Variables */
:root {
    --primary-color: #C36BFF;
    --primary-dark: #9B3DDB;
    --primary-light: #E5C7FF;
    --secondary-color: #8A3FFC;
    --accent-color: #FF9DE5;
    --success-color: #00C851;
    --warning-color: #FFB830;
    --danger-color: #FF4444;
    --info-color: #33B5E5;
    --light-color: #F8F6FF;
    --dark-color: #2C1810;
    --white: #ffffff;
    --gray-100: #F7F4FF;
    --gray-200: #E8E0FF;
    --gray-300: #D4C2FF;
    --gray-400: #B896FF;
    --gray-500: #9B6AFF;
    --gray-600: #7E3EFF;
    --gray-700: #6211CC;
    --gray-800: #4A0E99;
    --gray-900: #320A66;
    
    /* Background gradient */
    --bg-gradient: linear-gradient(135deg, #F8F6FF 0%, #E8E0FF 50%, #D4C2FF 100%);
    --hero-gradient: linear-gradient(135deg, #C36BFF 0%, #8A3FFC 50%, #5E2B8C 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(195, 107, 255, 0.1);
    --shadow: 0 4px 12px rgba(195, 107, 255, 0.15);
    --shadow-md: 0 8px 24px rgba(195, 107, 255, 0.2);
    --shadow-lg: 0 16px 48px rgba(195, 107, 255, 0.25);
    --shadow-xl: 0 24px 64px rgba(195, 107, 255, 0.3);
    
    /* Border radius */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1 { font-size: 4rem; font-weight: 800; }
.display-2 { font-size: 3.5rem; font-weight: 800; }
.display-3 { font-size: 3rem; font-weight: 800; }
.display-4 { font-size: 2.5rem; font-weight: 800; }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 12px 24px;
    font-size: 16px;
    line-height: 1.5;
    transition: all var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--border-radius-sm);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(195, 107, 255, 0.1);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    filter: hue-rotate(280deg) saturate(1.2);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 8px 16px !important;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    margin: 0 4px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(195, 107, 255, 0.08);
}

.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background: var(--primary-color);
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(195, 107, 255, 0.25);
}

/* Dropdown menus */
.dropdown-menu {
    background: var(--white);
    border: 1px solid rgba(195, 107, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown-item {
    color: var(--gray-700);
    padding: 12px 20px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(195, 107, 255, 0.08);
    color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(195, 107, 255, 0.1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-bottom: none;
    padding: 24px;
    font-weight: 600;
}

.card-header h1, .card-header h2, .card-header h3, 
.card-header h4, .card-header h5, .card-header h6 {
    color: var(--white);
    margin-bottom: 0;
}

.card-body {
    padding: 24px;
    color: var(--gray-800);
}

.card-title {
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 12px;
}

/* Forms */
.form-control {
    border: 2px solid rgba(195, 107, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    font-size: 16px;
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.5;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(195, 107, 255, 0.1);
    background: var(--white);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray-500);
}

.form-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-select {
    border: 2px solid rgba(195, 107, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    background: var(--white);
    color: var(--gray-800);
    font-size: 16px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(195, 107, 255, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(195, 107, 255, 0.25);
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 100px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}

/* Search Form in Hero */
.search-form-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.search-form .form-control,
.search-form .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--gray-800);
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Stats Row */
.stats-row {
    margin-top: 48px;
}

.stat-item h3 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections */
.bg-light {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
}

.section-padding {
    padding: 80px 0;
}

/* Step Items & Feature Items */
.step-item, .feature-item {
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-normal);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(195, 107, 255, 0.1);
    height: 100%;
}

.step-item:hover, .feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.step-icon, .feature-item i {
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.step-item:hover .step-icon,
.feature-item:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.step-item h4, .feature-item h4 {
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 16px;
}

.step-item p, .feature-item p {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Practitioner Cards */
.practitioner-card {
    transition: all var(--transition-normal);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(195, 107, 255, 0.1);
}

.practitioner-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.practitioner-card .card-img-top {
    height: 240px;
    object-fit: cover;
    transition: all var(--transition-normal);
}

.practitioner-card:hover .card-img-top {
    transform: scale(1.05);
}

.practitioner-card .card-body {
    padding: 24px;
}

.practitioner-card .badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-light {
    background: var(--gray-100) !important;
    color: var(--gray-700) !important;
}

/* Rating Stars */
.rating .fa-star {
    font-size: 16px;
    margin-right: 2px;
}

.rating .fa-star.text-warning {
    color: #FFB830 !important;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    font-weight: 500;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 16px 20px;
}

.alert-success {
    border-left-color: var(--success-color);
    background: #F0FFF4;
    color: #2F855A;
}

.alert-danger {
    border-left-color: var(--danger-color);
    background: #FEF5F5;
    color: #C53030;
}

.alert-warning {
    border-left-color: var(--warning-color);
    background: #FFFBF0;
    color: #C05621;
}

.alert-info {
    border-left-color: var(--info-color);
    background: #F0F9FF;
    color: #2B6CB0;
}

/* Footer */
.bg-dark {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%) !important;
}

footer {
    border-top: 1px solid rgba(195, 107, 255, 0.2);
}

footer .text-light-emphasis {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .text-light-emphasis:hover {
    color: var(--primary-light) !important;
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Profile Styles */
.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .search-form-container {
        padding: 24px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .step-item, .feature-item {
        padding: 24px 16px;
        margin-bottom: 24px;
    }
    
    .practitioner-card .card-img-top {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .search-form-container {
        padding: 20px;
    }
    
    .stat-item h3 {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .row .col-md-4:not(:last-child) .btn {
        margin-bottom: 12px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Additional spacing utilities */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.my-6 {
    margin-top: 4rem !important;
    margin-bottom: 4rem !important;
}