/* Astrathegn - Cosmic Masculine Spiritual Design System - Compact Edition */

:root {
    /* Color Palette */
    --gold: #f0c000;
    --silver: #c7c7c7;
    --teal: #006e56;
    --purple: #5100ff;
    --black: #0a0a0f;

    /* Gradients */
    --gradient-hero: linear-gradient(180deg, var(--black) 0%, #050508 100%);
    --gradient-card: linear-gradient(135deg, rgba(26, 26, 31, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;

    /* Effects */
    --glow-teal: 0 0 15px rgba(0, 110, 86, 0.3);
    --border-silver: 1px solid rgba(199, 199, 199, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
    /* Slightly smaller base for compactness */
    height: 100%;
}

body {
    background-color: var(--black);
    color: var(--silver);
    font-family: var(--font-body);
    line-height: 1.5;
    height: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Animation */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: var(--gradient-hero);
}

/* Layout - The Cosmic Grid */
.main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1000px;
    /* Reduced from 1400px for compactness */
    margin: 0 auto;
}

.cosmic-dashboard {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    /* Slightly smaller left column */
    gap: 2rem;
    /* Tighter gap */
    width: 100%;
    align-items: start;
    background: rgba(10, 10, 15, 0.3);
    /* Subtle backing for the whole group */
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--teal);
    display: inline-block;
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Left Column: Identify & Nexus */
.dashboard-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.identity-module {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(240, 192, 0, 0.3));
}

.tagline {
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--silver);
    margin-bottom: 0;
}

.nexus-module {
    background: rgba(10, 10, 15, 0.4);
    border: var(--border-silver);
    padding: 1.5rem;
    border-radius: 4px;
}

.nexus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nexus-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(20, 20, 25, 0.6);
    border: var(--border-silver);
    color: var(--silver);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nexus-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.nexus-link:hover {
    background: rgba(0, 110, 86, 0.15);
    color: var(--gold);
    border-color: var(--teal);
    transform: translateY(-2px);
}

/* Right Column: Communication Modules */
.dashboard-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comm-module {
    background: var(--gradient-card);
    border: var(--border-silver);
    padding: 1.5rem;
    border-radius: 4px;
    position: relative;
    backdrop-filter: blur(10px);
}

.vault-module {
    border-left: 3px solid var(--gold);
}

.ritual-module {
    border-left: 3px solid var(--purple);
}

.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.input-row .input-group {
    margin-bottom: 0;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid #333;
    color: var(--silver);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 2px;
    transition: all 0.3s;
}

textarea {
    resize: none;
    min-height: 80px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(20, 20, 25, 0.8);
}

input::placeholder,
textarea::placeholder {
    color: #555;
    font-size: 0.85rem;
}

button {
    width: 100%;
    padding: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.vault-btn {
    background: var(--gold);
    color: var(--black);
}

.ritual-btn {
    background: var(--silver);
    color: var(--black);
}

button:hover {
    transform: scale(1.01);
    box-shadow: 0 0 10px rgba(240, 192, 0, 0.2);
}

.form-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
    min-height: 1.2em;
}

.message-success {
    color: var(--teal);
}

.message-error {
    color: #ff4d4d;
}

/* Footer */
.dashboard-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #444;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 900px) {
    .main-wrapper {
        padding: 1rem;
        display: block;
    }

    .cosmic-dashboard {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .input-row {
        flex-direction: column;
        gap: 1rem;
    }

    .nexus-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }
}