﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Default: Dark Theme */
    --bg-primary: #111827; /* Very Dark Blue (near-black navy) */
    --bg-secondary: #1f2937; /* Dark Charcoal Blue */
    --bg-input: #374151; /* Charcoal Slate */
    --text-primary: #f3f4f6; /* Very Light Gray */
    --text-secondary: #d1d5db; /* Light Gray */
    --accent: #9333ea; /* Medium Purple */
    --accent-hover: #a855f7; /* Bright Purple / Lavender Violet */
    --accent-active: #7e22ce; /* Deep Purple / Violet Indigo */
    --border: #4b5563; /* Dark Gray Slate */
}

/* Light Theme */
.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --bg-input: #e5e7eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-active: #4f46e5;
    --border: #d1d5db;
}

/* Solarized Theme */
.theme-solarized {
    --bg-primary: #fdf6e3;
    --bg-secondary: #eee8d5;
    --bg-input: #e1dbcd;
    --text-primary: #657b83;
    --text-secondary: #93a1a1;
    --accent: #b58900;
    --accent-hover: #cb9e00;
    --accent-active: #9c7a00;
    --border: #d4c89f;
}

/* Nord Theme */
.theme-nord {
    --bg-primary: #2e3440;
    --bg-secondary: #3b4252;
    --bg-input: #434c5e;
    --text-primary: #eceff4;
    --text-secondary: #d8dee9;
    --accent: #88c0d0;
    --accent-hover: #81a1c1;
    --accent-active: #5e81ac;
    --border: #4c566a;
}

/* Dracula Theme */
.theme-dracula {
    --bg-primary: #282a36;
    --bg-secondary: #44475a;
    --bg-input: #6272a4;
    --text-primary: #f8f8f2;
    --text-secondary: #bd93f9;
    --accent: #ff79c6;
    --accent-hover: #ff92d0;
    --accent-active: #ff4ecb;
    --border: #6272a4;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.bp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.bp-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    margin-bottom: 2rem;
}

.bp-search-input {
    width: 100%;
    background-color: var(--bg-input);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    outline: none;
    font-size: 1rem;
}

.bp-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-hover);
}

.bp-workouts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .bp-workouts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bp-workouts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bp-workout-card {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.bp-workout-card:hover {
    transform: scale(1.05);
}

.bp-workout-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.bp-workout-content {
    padding: 1.5rem;
}

.bp-profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bp-profile-picture {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
}

.bp-profile-info h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.bp-profile-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.bp-submit-button {
    display: block;
    width: 100%;
    background-color: var(--accent);
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.bp-submit-button:hover {
    background-color: var(--accent-hover);
}

.bp-submit-button:active {
    background-color: var(--accent-active);
}

.bp-no-results {
    text-align: center;
    grid-column: 1 / -1;
    color: var(--text-secondary);
    font-size: 1.125rem;
}