/* ============================
   Creative Chaos Scoring Theme
   High-contrast, full-width, professional
   ============================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #eef2f8;

    /* Full-screen professional gradient background */
    background: linear-gradient(135deg, #0A1A2F 0%, #15345C 50%, #06101F 100%);
    background-attachment: fixed;
    background-size: cover;
}

/* Subtle texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 70px 70px, 45px 45px;
    background-position: 0 0, 35px 35px;
    pointer-events: none;
    z-index: -1;
}

/* Layout */
main.container {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 32px 5vw 40px;
}

/* Header bar */
.bar {
    width: 100%;
    background: rgba(10, 26, 47, 0.96);
    border-bottom: 3px solid #C9A74D;
    backdrop-filter: blur(6px);
    padding: 10px 5vw;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand / logo */
.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #F4F5F7;
}

.logo {
    height: 40px;
    width: auto;
}

/* Navigation links */
.bar nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 500;
    font-size: 0.95rem;
}

.bar nav a[aria-current="page"] {
    border-bottom: 2px solid #C9A74D;
    padding-bottom: 4px;
}

.bar nav a:hover,
.bar nav a:focus {
    color: #C9A74D;
}

/* Skip link – keep for accessibility but hide until focused */
.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    padding: 8px 14px;
    background: #C9A74D;
    color: #0A1A2F;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.skip-link:focus {
    left: 16px;
    z-index: 20;
}

/* Cards & content blocks */
.card {
    background: rgba(6, 16, 31, 0.95);
    border-radius: 14px;
    padding: 20px 20px 18px;
    margin: 0 auto 20px;
    max-width: 1200px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(201, 167, 77, 0.35);
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
}

/* Simple responsive row layout */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0 20px;
}

.row > div {
    min-width: 160px;
}

/* Typography helpers */
h1, h2, h3 {
    color: #F4F5F7;
    font-weight: 700;
}

.small {
    font-size: 0.85rem;
}

.muted {
    color: #b8c0d0;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(10, 26, 47, 0.9);
    border: 1px solid rgba(201,167,77,0.6);
    color: #F4F5F7;
    margin-left: 6px;
}

/* Alerts */
.alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 auto 20px;
    max-width: 800px;
    background: rgba(10, 26, 47, 0.9);
    border: 1px solid #C9A74D;
}

.warning {
    border-color: #ffcc66;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

th, td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

thead th {
    background: rgba(10, 26, 47, 0.95);
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* Forms & inputs */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10, 26, 47, 0.85);
    color: #F4F5F7;
    font-family: inherit;
    font-size: 0.95rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Buttons */
.btn,
button,
input[type="submit"] {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 18px;
    border: 1px solid rgba(201,167,77,0.65);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(10,26,47,0.9);
    color: #F4F5F7;
    text-decoration: none;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background: rgba(201,167,77,0.18);
}

.btn-primary {
    background-color: #C9A74D;
    color: #0A1A2F;
    border-color: #C9A74D;
}

.btn-primary:hover {
    background-color: #b08f3e;
}

.btn-danger {
    background-color: #b53b3b;
    color: #ffffff;
    border-color: #b53b3b;
}

.btn-danger:hover {
    background-color: #972f2f;
}

/* Focus outlines for accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus,
.btn:focus,
a:focus-visible {
    outline: 3px solid #C9A74D;
    outline-offset: 2px;
}

/* Utility spacing */
p {
    line-height: 1.45;
}

.card p:last-child {
    margin-bottom: 0;
}

/* Make sure footer doesn't stick oddly */
footer {
    padding: 16px 5vw 24px;
    font-size: 0.8rem;
    color: #b8c0d0;
}
