/*
Theme Name: OrgaTrade
Theme URI:
Description: Internes Theme für die OrgaTrade-Plattform — Star Citizen Ästhetik.
Version: 0.1.0
Author: Nachtgreif
*/

/* ── Variablen ────────────────────────────────────────────────────────────── */
:root {
    --bg:         #0a0e14;
    --surface:    #0f1825;
    --surface2:   #162035;
    --border:     #1e3050;
    --accent:     #4a9edd;
    --accent-dim: #2d6ea8;
    --text:       #c8d8e8;
    --text-dim:   #7a9ab8;
    --danger:     #e05555;
    --success:    #4caf8a;
}

/* ── Reset & Basis ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.6em;
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.4em; border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 16px; }
h3 { font-size: 1.1em; color: var(--accent); }

p { margin-bottom: 1em; color: var(--text-dim); }

hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    width: 100%;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.site-logo {
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.site-logo span { color: var(--accent); }

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

.site-nav a {
    display: block;
    padding: 6px 14px;
    color: var(--text-dim);
    font-size: 0.85em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
    color: #fff;
    background: var(--surface2);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 14px 24px;
    font-size: 0.8em;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

/* ── Plugin-Elemente ──────────────────────────────────────────────────────── */

/* Tabellen */
.ot-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.9em;
}

.ot-table th {
    background: var(--surface2);
    color: var(--accent);
    text-align: left;
    padding: 8px 12px;
    font-size: 0.8em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.ot-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.ot-table tr:hover td { background: var(--surface2); }
.ot-table tr[style*="opacity"] td { color: var(--text-dim); }
.ot-table small { color: var(--text-dim); font-size: 0.85em; }

/* Formulare */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea,
select {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 10px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
}

select option { background: var(--surface2); }

/* Buttons */
.button,
button,
input[type="submit"] {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 16px;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.9em;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: border-color 0.15s, color 0.15s;
}

.button:hover, button:hover, input[type="submit"]:hover {
    border-color: var(--accent);
    color: #fff;
}

.button-primary,
button[type="submit"],
input[type="submit"] {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: #fff;
}

.button-primary:hover,
button[type="submit"]:hover {
    background: var(--accent);
}

/* Notices */
.notice { padding: 10px 14px; border-radius: 3px; margin-bottom: 16px; }
.notice-success { background: #0d2b1e; border-left: 3px solid var(--success); color: var(--success); }
.notice-error   { background: #2b0d0d; border-left: 3px solid var(--danger);  color: var(--danger); }

/* Matching */
.ot-matching h3 { margin-top: 24px; }

/* Status-Select in Tabelle */
.ot-status-select {
    padding: 4px 8px;
    font-size: 0.8em;
}

/* Seiten-Titel */
.entry-title {
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;
}

/* WordPress-Login-Button Override */
a[href*="wp-login"] {
    display: inline-block;
    background: var(--surface2) !important;
    border: 1px solid var(--border);
    color: var(--text) !important;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: bold;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .site-nav { display: none; }
    .ot-table { font-size: 0.8em; }
    .ot-table th, .ot-table td { padding: 6px 8px; }
}
