/* KrowdScore — Global Styles */

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a2e;
    background: url('bulbs.jpg') no-repeat center top;
    background-size: 90%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

h1:focus {
    outline: none;
}

a {
    color: #d63384;
}

a:hover {
    color: #b52a6f;
}

/* Breadcrumb tweaks */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.4;
}

/* Subtle metadata */
.ks-submitted-by {
    opacity: 0.4;
}

.ks-score-breakdown {
    opacity: 0.4;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
    border-color: #d63384;
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.15);
}

/* Primary button colour */
.btn-primary {
    background-color: #d63384;
    border-color: #d63384;
}

.btn-primary:hover {
    background-color: #b52a6f;
    border-color: #b52a6f;
}

.btn-outline-primary {
    color: #d63384;
    border-color: #d63384;
}

.btn-outline-primary:hover {
    background-color: #d63384;
    border-color: #d63384;
    color: #fff;
}

/* Card defaults */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

/* Validation messages */
.validation-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Description content block */
.description-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
}

/* Ensure navbar dropdown sits above sticky content */
.ks-header .navbar {
    position: relative;
    z-index: 1030;
}

/* Clickable submission card */
a.submission-card {
    transition: box-shadow 0.15s, transform 0.15s;
}

a.submission-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Avatar circle */
.ks-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.15s;
}

.ks-avatar:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

.ks-avatar-guest {
    background-color: rgba(255, 255, 255, 0.15);
}

.ks-avatar-guest:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Markdown content */
.ks-markdown-content h1 { font-size: 2rem; margin-bottom: 1rem; }
.ks-markdown-content h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.4rem; }
.ks-markdown-content h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.ks-markdown-content p { line-height: 1.7; margin-bottom: 1rem; }
.ks-markdown-content ul, .ks-markdown-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.ks-markdown-content li { margin-bottom: 0.3rem; line-height: 1.6; }
.ks-markdown-content blockquote { border-left: 4px solid #d63384; padding: 0.5rem 1rem; margin: 1rem 0; background: #f8f9fa; border-radius: 0 0.25rem 0.25rem 0; }
.ks-markdown-content blockquote p { margin-bottom: 0; }
.ks-markdown-content code { background: #f1f3f5; padding: 0.15em 0.4em; border-radius: 3px; font-size: 0.9em; }
.ks-markdown-content pre { background: #1a1a2e; color: #e2e8f0; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin-bottom: 1rem; }
.ks-markdown-content pre code { background: transparent; padding: 0; color: inherit; }
.ks-markdown-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.ks-markdown-content th, .ks-markdown-content td { border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; text-align: left; }
.ks-markdown-content th { background: #f8f9fa; font-weight: 600; }
.ks-markdown-content hr { border: none; border-top: 2px solid #e2e8f0; margin: 2rem 0; }
.ks-markdown-content strong { font-weight: 600; }

/* Blazor error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
