/* ==========================================
   THEME SYSTEM - Card Styling for Different Themes
   ========================================== */

/* Gradient Theme (Default) - Vibrant and Modern */
.card-style-gradient {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.card-style-gradient:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Modern Theme - Softer and Professional */
.card-style-modern {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.card-style-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Minimal Theme - Subtle and Clean */
.card-style-minimal {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
    position: relative;
}

.card-style-minimal:hover {
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Professional Theme - Corporate Style */
.card-style-professional {
    border: 1px solid rgba(31, 78, 121, 0.3);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.card-style-professional:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(31, 78, 121, 0.15);
    border-color: rgba(31, 78, 121, 0.5);
}

/* Common Card Accent for all themes */
.provider-card-accent,
.location-card-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(40%, -40%);
    pointer-events: none;
}

.provider-card-accent::before,
.location-card-accent::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Hover Overlay Effect */
.hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-style-gradient:hover .hover-overlay,
.card-style-modern:hover .hover-overlay,
.card-style-professional:hover .hover-overlay {
    opacity: 1;
}

/* ==========================================
   LOCATION CARD THEMING - Using CSS Variables
   ========================================== */

.location-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.location-card:hover {
    transform: translateY(-4px);
}

/* Gradient Theme - Applies to all location cards */
.location-card.card-style-gradient {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-card.card-style-gradient:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.location-card.card-style-gradient .location-card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.location-card.card-style-gradient .location-card-title {
    color: #212529;
    font-weight: 600;
}

/* Modern Theme */
.location-card.card-style-modern {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.location-card.card-style-modern:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.location-card.card-style-modern .location-card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.90) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.location-card.card-style-modern .location-card-title {
    color: #495057;
    font-weight: 500;
}

/* Minimal Theme */
.location-card.card-style-minimal {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.location-card.card-style-minimal:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.location-card.card-style-minimal .location-card-header {
    background: rgba(248, 249, 250, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.location-card.card-style-minimal .location-card-title {
    color: #6c757d;
    font-weight: 400;
}

/* Professional Theme */
.location-card.card-style-professional {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(31, 78, 121, 0.2);
    border-radius: 6px;
}

.location-card.card-style-professional:hover {
    box-shadow: 0 4px 12px rgba(31, 78, 121, 0.12);
    border-color: rgba(31, 78, 121, 0.3);
}

.location-card.card-style-professional .location-card-header {
    background: linear-gradient(135deg, rgba(31, 78, 121, 0.08) 0%, rgba(79, 129, 189, 0.08) 100%);
    border-bottom: 1px solid rgba(31, 78, 121, 0.3);
}

.location-card.card-style-professional .location-card-title {
    color: #1f4e79;
    font-weight: 600;
}

/* Location Card Body Styling */
.location-card-body {
    background: rgba(255, 255, 255, 0.95);
    position: relative;
}

.location-card-header {
    background-clip: padding-box;
    padding: 1rem;
}

/* ==========================================
   THEME SELECTOR COMPONENT
   ========================================== */

.theme-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.theme-btn {
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.theme-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.theme-btn.active {
    border-color: var(--bs-primary);
    background: var(--bs-primary);
    color: white;
}

/* ==========================================
   TEXT COLOR ADJUSTMENTS FOR THEMES
   ========================================== */

.card-style-minimal .card-title,
.card-style-minimal .card-text,
.location-card.theme-minimal .card-header .card-title {
    color: #212529;
}

.card-style-professional .card-title,
.card-style-professional .card-text,
.location-card.theme-professional .card-header .card-title {
    color: #1f4e79;
}
