/* ============================================
   LIVE LOCATION TRACKING STYLES
   ============================================ */

/* Live Location Section in Profile */
.live-location-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.live-location-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.live-location-section .section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.live-location-section .section-header h3 i {
    color: var(--accent-primary);
}

/* Location Status Badge */
.location-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.location-status-badge.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.location-status-badge.inactive {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.location-status-badge i {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Location Control Card */
.location-control-card {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
}

.location-control-card .control-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.location-control-card .control-header i {
    font-size: 2rem;
}

.location-control-card h4 {
    margin: 0;
    font-size: 1.125rem;
}

.location-control-card p {
    margin: 0 0 16px 0;
    opacity: 0.95;
    font-size: 0.9375rem;
}

.location-toggle-btn {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.location-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.location-toggle-btn:active {
    transform: translateY(0);
}

.location-toggle-btn.stop {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.location-toggle-btn.stop:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Location Info Display */
.location-info-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.location-info-item {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.location-info-item i {
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.location-info-item .value {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.location-info-item .label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Privacy Settings */
.privacy-settings {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.privacy-settings h4 {
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-primary);
}

.privacy-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.privacy-option:last-child {
    margin-bottom: 0;
}

.privacy-option:hover {
    background: var(--bg-tertiary);
}

.privacy-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.privacy-option-content {
    flex: 1;
}

.privacy-option-content .title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.privacy-option-content .description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Nearby Users List */
.nearby-users-section {
    margin-top: 20px;
}

.nearby-users-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-primary);
}

.nearby-users-section .badge {
    background: var(--accent-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nearby-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nearby-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nearby-user-card:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.nearby-user-card .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.nearby-user-card .user-info {
    flex: 1;
}

.nearby-user-card .user-info .name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.nearby-user-card .user-info .status {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.nearby-user-card .distance {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Notification Settings */
.proximity-settings {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.proximity-settings h4 {
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-primary);
}

.proximity-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.proximity-setting-item:last-child {
    margin-bottom: 0;
}

.proximity-setting-item label {
    flex: 1;
    cursor: pointer;
}

.proximity-setting-item .title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.proximity-setting-item .description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + label {
    background: var(--accent-primary);
}

.toggle-switch input:checked + label:before {
    transform: translateX(24px);
}

/* Distance Slider */
.distance-slider-container {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.distance-slider-container h4 {
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--text-primary);
}

.distance-value {
    font-weight: 600;
    color: var(--accent-primary);
}

.distance-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

.distance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.distance-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.distance-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .live-location-section {
        padding: 16px;
    }
    
    .location-control-card {
        padding: 16px;
    }
    
    .location-info-display {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nearby-user-card {
        padding: 10px;
    }
    
    .nearby-user-card .avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
