/* Let's Climb! Main Stylesheet - Updated for Theme Compatibility */

/* Layout improvements */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Form field spacing */
.form-field {
    margin-bottom: 1.5rem;
}

/* Participant list styling - enhanced in theme.css */
.participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.participants-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light, #eee);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participants-list li:last-child {
    border-bottom: none;
}

/* Action buttons container */
.action-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Comments section */
.comments-section {
    margin-top: 2rem;
}

.comment-form {
    margin-bottom: 2rem;
}

/* Profile sessions styling */
.profile-sessions {
    border-bottom: 1px solid var(--border-light, #eee);
    padding: 1rem 0;
}

.profile-sessions:last-child {
    border-bottom: none;
}

.session-meta-small {
    color: var(--text-muted, #666);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Form footer links */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

/* Error styling - enhanced in theme.css */
.errorlist {
    color: var(--danger-color, #dc3545);
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.errorlist li {
    font-size: 0.875rem;
}

.form-errors {
    color: var(--danger-color, #dc3545);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Help text styling */
.help-text {
    color: var(--text-muted, #666);
    font-size: 0.875rem;
}

/* Legacy responsive styles */
@media (max-width: 768px) {
    .filter-form input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Form field containers */
.form-field {
    margin-bottom: 1rem;
}

/* Form styling improvements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: bold;
    color: #333;
}

/* Error styling */
.errorlist {
    color: #dc3545;
    list-style: none;
    padding: 0;
    margin: 0.25rem 0;
}

.errorlist li {
    font-size: 0.875rem;
}

.form-errors {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Help text styling */
.help-text {
    color: #666;
    font-size: 0.875rem;
}

/* Help text */
small {
    color: #666;
    font-size: 0.875rem;
}

/* Participant list styling */
.participants-list {
    list-style: none;
    padding: 0;
}

.participants-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.participants-list li:last-child {
    border-bottom: none;
}

/* Action buttons container */
.action-buttons {
    margin-top: 1rem;
}

/* Shareable link container */
.shareable-link {
    margin-top: 1rem;
    padding: 1rem;
    background: #e9ecef;
    border-radius: 4px;
}

.shareable-link code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

/* Comments section */
.comments-section {
    margin-top: 2rem;
}

.comment-form {
    margin-bottom: 2rem;
}

/* Profile section styling */
.profile-section {
    margin-bottom: 2rem;
}

.profile-sessions {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

.profile-sessions:last-child {
    border-bottom: none;
}

.session-meta-small {
    color: #666;
    font-size: 0.8rem;
}

/* Notice/info sections */
.info-notice {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

/* HTMX Loading Indicators */
.htmx-indicator {
    display: none;
    margin: 0.5rem 0;
    color: var(--text-muted, #6c757d);
    font-size: 0.9rem;
}

.htmx-request .htmx-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Past Session Styling */
.past-session {
    position: relative;
    opacity: 0.85;
}

.past-session-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

.past-session .session-card {
    border-left: 3px solid var(--secondary, #6c757d);
}
