/* Scientologi - Main Stylesheet */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: #000;
    color: #ddd;
    line-height: 1.6;
}

/* Sticky Navigation */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #020b23;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 56px;
}

.nav-brand a {
    color: #fff;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-brand a:hover {
    opacity: 0.85;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-user {
    display: block;
    padding: 16px 18px;
    color: #aaa;
    font-size: 0.95em;
}

.nav-links a {
    display: block;
    padding: 16px 28px;
    color: #ccc;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background-color 0.25s, color 0.25s;
}

#navbar a:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
}

/* Logo Area */
#logo-area {
    text-align: center;
    padding: 60px 20px;
    background-color: #000;
}

#logo-area img {
    max-width: 700px;
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Page Content */
#page {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000;
    min-height: 100vh;
}

#content {
    padding: 40px;
}

/* Content Sections */
.section {
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.section h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.6em;
}

.section p {
    margin-bottom: 15px;
    color: #bbb;
}

.section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.section li {
    margin-bottom: 10px;
    color: #bbb;
}

/* Hero */
#hero {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
}

#hero h1 {
    font-size: 2.2em;
    color: #fff;
    margin-bottom: 15px;
}

.lead {
    font-size: 1.15em;
    color: #aaa;
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: #020b23;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.25s, border-color 0.25s;
}

.cta-button:hover {
    background-color: #051440;
    border-color: rgba(255,255,255,0.4);
}

/* Contact Form */
.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 18px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #111;
    color: #ddd;
    font-family: inherit;
    font-size: 1em;
}

.contact-form input[type="submit"] {
    background-color: #020b23;
    color: #fff;
    padding: 12px 30px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.25s;
}

.contact-form input[type="submit"]:hover {
    background-color: #051440;
}

/* Dynamics Page Cards */
.dynamics-list {
    margin-bottom: 30px;
}

.dynamic-card {
    display: flex;
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.dynamic-number {
    flex-shrink: 0;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #020b23;
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
}

.dynamic-content {
    padding: 22px;
    flex: 1;
}

.dynamic-content h2 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.25em;
}

.dynamic-content p {
    color: #bbb;
    margin-bottom: 8px;
}

/* Front Page Dynamics Grid */
.dynamics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.dynamic-tile {
    background-color: #0a0a0a;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.dynamic-img {
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.dyn-num {
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
}

.dyn-label {
    font-size: 1em;
    font-weight: bold;
    margin-top: 6px;
}

.dynamic-tile p {
    padding: 14px;
    color: #bbb;
    font-size: 0.9em;
}

.form-error {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9em;
}

.admin-table th,
.admin-table td {
    border: 1px solid #333;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background-color: #020b23;
    color: #fff;
    font-weight: bold;
}

.admin-table td {
    background-color: #111;
    color: #ccc;
}

.admin-table tr:nth-child(even) td {
    background-color: #0a0a0a;
}

.admin-table pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    font-family: inherit;
    color: #bbb;
}

.form-error {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Hamburger Button (hidden on desktop) */
#nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff;
    position: relative;
    transition: background-color 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.2s;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

#nav-toggle.active .hamburger {
    background-color: transparent;
}

#nav-toggle.active .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

#nav-toggle.active .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    #navbar {
        padding: 0 16px;
        height: 52px;
    }

    #nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background-color: #020b23;
        flex-direction: column;
        align-items: stretch;
        display: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 8px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a,
    .nav-user {
        padding: 14px 20px;
        width: 100%;
    }

    .nav-user {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    #logo-area {
        padding: 30px 10px;
    }

    #logo-area img {
        width: 95%;
    }

    #content {
        padding: 20px;
    }

    #hero h1 {
        font-size: 1.6em;
    }

    .dynamic-card {
        flex-direction: column;
    }

    .dynamic-number {
        width: 100%;
        padding: 12px;
    }

    .dynamics-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }

    .dynamic-img {
        height: 100px;
    }

    .dyn-num {
        font-size: 2em;
    }
}
