/* ===== RelicScope Main Theme (v26) ===== */

/* Reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
    color: #e5e7eb;
    min-height: 100vh;
}

/* Links */
a {
    color: #38bdf8;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Top bar (old style) */
.topbar {
    background: #020617;
    border-bottom: 1px solid #111827;
}
.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar-left {
    display: flex;
    align-items: center;
}
.topbar-logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    color: #facc15;
    text-transform: uppercase;
}
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    justify-content: center;
}
.topbar-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fbbf24;
}
.topbar-nav a:hover {
    color: #fde68a;
    text-decoration: none;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-right a {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fbbf24;
}
.topbar-right a:hover {
    color: #fde68a;
    text-decoration: none;
}

/* Layout wrapper */
.site-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* Headings */
h1, h2, h3, h4 {
    font-weight: 600;
    color: #f9fafb;
}

h1 {
    font-size: 1.85rem;
    margin: 8px 0 14px;
}
h2 {
    font-size: 1.35rem;
    margin: 18px 0 10px;
}
h3 {
    font-size: 1.15rem;
    margin: 16px 0 8px;
}

/* Cards grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Card */
.card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
}

.card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 12px 4px;
}

.card-title a {
    color: #f9fafb;
}

.card-meta {
    font-size: 0.8rem;
    padding: 0 12px 10px 12px;
    opacity: 0.8;
}

/* Generic boxes */
.content-box,
.item-box,
.report-form {
    background: rgba(15, 23, 42, 0.96);
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    margin-bottom: 20px;
}

/* Forms */
form {
    margin: 0;
}

.form-group {
    margin-bottom: 10px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #4b5563;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    font-size: 0.95rem;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* Buttons */
.btn-primary,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 14px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.08s ease;
}

button:hover,
.btn-primary:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.4);
    opacity: 0.96;
}

button:disabled,
input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
}

.admin-table {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.25);
    background: rgba(15, 23, 42, 0.95);
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    text-align: left;
}

.admin-table th {
    background: rgba(15,23,42,0.98);
    font-weight: 600;
    color: #e5e7eb;
}

.admin-table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.92);
}

/* Comments */
.comment {
    background: rgba(15, 23, 42, 0.96);
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(148,163,184,0.2);
    font-size: 0.9rem;
}

.comment-meta {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

/* Notifications */
.notification-item {
    background: rgba(15, 23, 42, 0.96);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.2);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Utility */
.text-muted {
    opacity: 0.7;
    font-size: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}

/* Footer */
.site-footer {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    font-size: 0.8rem;
    opacity: 0.7;
}
