:root {
    --primary: #ff7a1a;
    --primary-dark: #e06610;
    --bg: #0a0f1c;
    --bg-alt: #0d1324;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #38bdf8;
    --radius: 12px;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: radial-gradient(circle at top left, #1e293b 0, #0a0f1c 60%, #000 100%);
    color: var(--text);
    line-height: 1.6;
}

header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #1f2937;
    background: rgba(10,15,28,0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.nav-links a {
    color: var(--muted);
    margin-left: 1.2rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.hero {
    margin-top: 2rem;
    padding: 2.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(13,19,36,0.95), rgba(13,19,36,0.98)),
                radial-gradient(circle at top right, rgba(255,122,26,0.12), transparent 60%);
    border: 1px solid rgba(255,122,26,0.35);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.hero h1 {
    font-size: 2.6rem;
    margin: 0 0 1rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero-sub {
    max-width: 40rem;
    color: var(--muted);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0f1c;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    box-shadow: 0 12px 30px rgba(255,122,26,0.45);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

section {
    margin-top: 3rem;
}

.section-heading {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.section-sub {
    color: var(--muted);
    max-width: 40rem;
    font-size: 0.95rem;
}

.card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.2rem;
    border: 1px solid #1f2937;
    margin-top: 1.2rem;
}

.card h3 {
    margin-top: 0;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #1f2937;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

/* ---------------------------------------------------------
   Scripts page layout
--------------------------------------------------------- */

.scripts-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.scripts-list {
    flex: 1;
}

.script-content {
    flex: 2;
}

/* Script list */

#script-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.script-item {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.6rem;
    border: 1px solid #1f2937;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
    font-size: 0.95rem;
}

.script-item:hover {
    background: rgba(13,19,36,0.9);
    border-color: var(--primary);
    transform: translateX(3px);
}

/* Script code panel */

#script-code {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.2rem;
    border: 1px solid #1f2937;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    min-height: 220px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

/* Image panel under code */

#script-image-panel {
    margin-top: 1.2rem;
    text-align: center;
}

#script-image {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    border: 1px solid #1f2937;
}

/* Small tweak so the copy button sits nicely with the code block */

.script-content .btn-primary {
    margin-top: 0.8rem;
}
