/* WOD-Coach minimal styles */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #222;
    line-height: 1.5;
}

.login-page,
.home-logged-in,
.members-page,
.profile-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

h2 {
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

h3 {
    margin: 0;
    font-size: 1.25rem;
}

h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.tagline {
    color: #666;
    margin: 0 0 1.5rem 0;
}

.hint {
    color: #888;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Forms */

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="email"],
input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #555;
}

button {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
}

button:hover:not(:disabled) {
    background: #f0f0f0;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

/* Status messages */

.status {
    padding: 0.75rem;
    border-radius: 4px;
    background: #e0f2fe;
    color: #075985;
}

.error {
    padding: 0.75rem;
    border-radius: 4px;
    background: #fee2e2;
    color: #991b1b;
    margin: 0.5rem 0;
}

.loading,
.empty {
    color: #888;
    font-style: italic;
    padding: 1rem 0;
}

/* Header */

header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.user-info {
    flex: 1;
    margin: 0;
    color: #666;
}

/* Sections */

.wods-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* WOD list */

.wod-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wod-item {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.wod-item-public {
    border-left: 3px solid #2563eb;
}

.wod-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.wod-title {
    font-weight: 500;
}

.wod-type,
.wod-duration {
    font-size: 0.875rem;
    color: #666;
    background: #f0f0f0;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.wod-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.confirm-delete {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: #991b1b;
}

.wod-description {
    margin: 0.5rem 0;
    white-space: pre-wrap;
}

details {
    margin-top: 0.5rem;
}

.movements {
    background: #f8f8f8;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    overflow-x: auto;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
}

/* Members list */

.member-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-item {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.member-item a {
    color: #2563eb;
    text-decoration: none;
}

.member-item a:hover {
    text-decoration: underline;
}

/* Links */

a {
    color: #2563eb;
}