* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-size: 16px;
    min-height: 100vh;
}

/* ── Background ── */
body {
    background: radial-gradient(ellipse at center, #1a0e08 0%, #0d0705 45%, #060403 100%);
    background-attachment: fixed;
}

/* ── Header ── */
header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(5, 3, 2, 0.75);
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #1a0e08;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 0;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #fff;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #2a1808;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 4px 16px;
}

.dropdown-label {
    display: block;
    padding: 8px 16px 4px;
    font-size: 0.72rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    color: rgba(200, 150, 60, 0.9);
    pointer-events: none;
}

.dropdown-sublabel {
    display: block;
    padding: 0 16px 6px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

/* ── Hero ── */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    min-height: 400px;
    position: relative;
    text-align: center;
    background-image: url('../img/mining-ships.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 2, 0.5);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, #0d0705);
    pointer-events: none;
}

.hero-text {
    position: relative;
    max-width: 580px;
}

.hero-presents {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 36px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

#start-a-project {
    text-decoration: none;
    background: rgba(18, 10, 5, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 10px 24px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s;
}

#start-a-project:hover {
    background: rgba(38, 22, 8, 0.95);
}


/* ── Features ── */
.features {
    background: linear-gradient(to bottom, #0d0705 0%, transparent 220px);
    padding: 50px 40px 60px;
    text-align: center;
}

.features-container {
    background: transparent;
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.features h2 {
    font-size: 1.6rem;
    font-weight: normal;
    margin-bottom: 30px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: rgba(18, 10, 5, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    cursor: pointer;
    transition: background 0.2s;
}

.card:hover {
    background: rgba(38, 22, 8, 0.95);
}

.card h3 {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.card p {
    font-size: 0.7rem;
    text-align: center;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.coming-soon {
    color: #ccc;
}

/* ── Card links (landing page) ── */
.card-link {
    text-decoration: none;
    color: inherit;
    display: contents;
}

/* ── Inner pages ── */
.page-content {
    padding: 50px 40px;
    min-height: calc(100vh - 62px);
    background: linear-gradient(to bottom, #0d0705, #060403);
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.card.wide {
    grid-column: span 2;
    align-items: flex-start;
    gap: 10px;
}

.action-btn {
    display: inline-block;
    margin-top: 10px;
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 7px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stat {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 8px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 600px;
}

.coming-soon-banner {
    background: rgba(160, 160, 160, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

.coming-soon-banner h2 {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.coming-soon-banner p {
    color: #aaa;
    margin-bottom: 24px;
}

.logo a {
    display: flex;
}

/* ── Link Character button (header) ── */
.link-character-btn {
    margin-left: auto;
    margin-right: 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(200, 150, 60, 0.7);
    color: rgba(200, 150, 60, 0.9);
    padding: 2px 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
}

.link-character-btn:hover {
    color: #d4a84a;
    border-bottom-color: #d4a84a;
}

/* ── App shell layout ── */
.app-layout {
    display: flex;
    min-height: calc(100vh - 62px - 48px);
}

/* ── Sidebar ── */
.sidebar {
    width: 220px;
    min-width: 220px;
    background: rgba(8, 5, 3, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-section-label {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    padding: 10px 20px 4px;
    text-transform: uppercase;
}

.sidebar-link {
    display: block;
    padding: 9px 20px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
    border-left: 2px solid transparent;
}

.sidebar-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: #c89a3c;
    background: rgba(200, 150, 60, 0.08);
    border-left-color: #c89a3c;
}

.sidebar-link.coming-soon {
    color: rgba(255, 255, 255, 0.3);
}

.sidebar-link.coming-soon::after {
    content: ' ·';
    font-size: 0.6rem;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.2);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 8px 0;
}

/* ── App content area ── */
.app-content {
    flex: 1;
    min-height: 0;
    background: none;
    overflow-y: auto;
}

/* ── Dev Banner ── */
.dev-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 24px;
    background: rgba(200, 150, 60, 0.08);
    border-bottom: 1px solid rgba(200, 150, 60, 0.18);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: rgba(200, 160, 70, 0.75);
}

.dev-banner-icon {
    flex-shrink: 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

.dev-banner-text {
    flex: 1;
}

.dev-banner-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(200, 160, 70, 0.5);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.dev-banner-close:hover {
    color: rgba(200, 160, 70, 0.9);
}

/* ── Footer ── */
footer {
    padding: 14px 24px;
    background: rgba(5, 3, 2, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: right;
    line-height: 1.6;
    letter-spacing: 0.03em;
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #1a0e08;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.modal-field {
    margin-bottom: 18px;
}

.modal-field label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

.modal-field input,
.modal-field textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: Arial, Helvetica, sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.modal-field input:focus,
.modal-field textarea:focus {
    border-color: rgba(200, 150, 60, 0.6);
}

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

.type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-chip {
    cursor: pointer;
}

.type-chip input {
    display: none;
}

.type-chip span {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.15s;
    cursor: pointer;
}

.type-chip input:checked + span {
    border-color: rgba(200, 150, 60, 0.8);
    color: #c89a3c;
    background: rgba(200, 150, 60, 0.1);
}

.type-chip span:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.action-btn-primary {
    border-color: rgba(200, 150, 60, 0.7);
    color: rgba(200, 150, 60, 0.9);
}

.action-btn-primary:hover {
    background: rgba(200, 150, 60, 0.12);
    border-color: #c89a3c;
    color: #c89a3c;
}

/* ── Project cards ── */
.project-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.project-name {
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.03em;
}

.project-status {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 3px;
}

.status-planning  { background: rgba(80, 100, 200, 0.2); color: rgba(140, 160, 255, 0.85); }
.status-active    { background: rgba(50, 180, 80, 0.2);  color: rgba(80, 220, 110, 0.85); }
.status-completed { background: rgba(200, 150, 60, 0.2); color: rgba(200, 160, 70, 0.85); }
.status-paused    { background: rgba(160, 100, 40, 0.2); color: rgba(190, 130, 60, 0.85); }

.project-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.type-badge {
    font-size: 0.6rem;
    letter-spacing: 0.07em;
    padding: 2px 8px;
    border: 1px solid rgba(200, 150, 60, 0.3);
    color: rgba(200, 150, 60, 0.65);
    border-radius: 3px;
    text-transform: uppercase;
}

.project-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
    line-height: 1.5;
}

.project-date {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.03em;
}

/* ── Sidebar toggle (mobile only) ── */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-right: 8px;
}

/* ── Mobile sidebar ── */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -220px;
        top: 62px;
        height: calc(100vh - 62px);
        z-index: 100;
        transition: left 0.25s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .link-character-btn {
        display: none;
    }
}
