/* Indra Theme - Main Styles */

/* Fonts */
@font-face {
    font-family: 'RedactedScript-Bold';
    src: url(/fonts/RedactedScript-Bold.woff2) format('woff2');
    font-weight: bold;
    font-style: normal;
}

.redacted-font {
    font-family: 'RedactedScript-Bold', sans-serif;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #e0e0e0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Three.js Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Content Layer */
.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem 2rem; /* Top for nav, bottom for footer */
    pointer-events: none;
}

/* Crystal Panel with RGB Border */
.crystal-panel {
    background: rgba(8, 8, 14, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    border: none;
}

.crystal-panel img {
    max-width: 100%;
    height: auto;
}

.crystal-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        90deg,
        #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0080ff, #8000ff, #ff0080, #ff0000
    );
    background-size: 400% 100%;
    border-radius: 10px;
    z-index: -1;
    animation: rgb-border 8s linear infinite;
    opacity: 0.7;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
}

@keyframes rgb-border {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

/* Rainbow Gradient Text */
@keyframes rainbow-text {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(to right, #ff0080, #ff00ff, #00ffff, #00ff00, #ffff00, #ff7f00, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 2s infinite linear;
}

h2 {
    font-size: 1.8rem;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    color: #d0d0d0;
    margin-bottom: 0.75rem;
}

p {
    line-height: 1.7;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: #80c0ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(128, 192, 255, 0.3);
    transition: all 0.2s ease;
}

a:hover {
    color: #a0d0ff;
    border-bottom-color: #a0d0ff;
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #b0b0b0;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Code */
code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.9em;
}

pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
}

/* Navigation */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
    background: rgba(8, 8, 14, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
}

.site-nav a {
    display: inline-block;
    padding: 18px 0;
    margin-right: 1em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: none;
}

.site-nav a:hover {
    border-bottom: none;
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

/* Active nav item - pink glow with RGB hue-shift animation */
.site-nav a.active {
    color: #ff3ac4;
    text-shadow:
        0 0 3px rgba(255, 58, 196, 1.0),
        0 0 10px rgba(255, 58, 196, 1.0),
        0 0 24px rgba(255, 58, 196, 1.0);
    animation: rainbow-text 10s infinite linear;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }
    .crystal-panel { padding: 1.5rem; }
    .content-wrapper { padding: 4rem 1rem 3rem 1rem; }
}

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    height: 40px;
    background: rgba(8, 8, 14, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.site-footer span {
    display: flex;
    align-items: center;
    max-width: 800px;
    width: 100%;
    padding: 0 2rem;
    color: #606060;
    font-size: 0.85rem;
    pointer-events: auto;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: none;
}

.btn:hover {
    border-bottom: none;
}

.btn-primary {
    background: rgba(128, 192, 255, 0.2);
    color: #80c0ff;
    border: 1px solid rgba(128, 192, 255, 0.4);
}

.btn-primary:hover {
    background: rgba(128, 192, 255, 0.3);
    border-color: #80c0ff;
    color: #a0d0ff;
}

.btn-success {
    background: rgba(0, 255, 128, 0.2);
    color: #00ff80;
    border: 1px solid rgba(0, 255, 128, 0.4);
}

.btn-success:hover {
    background: rgba(0, 255, 128, 0.3);
    border-color: #00ff80;
    color: #40ffa0;
}

.btn-warning {
    background: rgba(255, 191, 0, 0.2);
    color: #ffbf00;
    border: 1px solid rgba(255, 191, 0, 0.4);
}

.btn-warning:hover {
    background: rgba(255, 191, 0, 0.3);
    border-color: #ffbf00;
    color: #ffd040;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(128, 192, 255, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #80c0ff;
}

.form-control::placeholder {
    color: #606060;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    pointer-events: auto;
}

.alert-success {
    background: rgba(0, 255, 128, 0.15);
    border: 1px solid rgba(0, 255, 128, 0.3);
    color: #00ff80;
}

.alert-danger {
    background: rgba(255, 64, 64, 0.15);
    border: 1px solid rgba(255, 64, 64, 0.3);
    color: #ff6060;
}

.alert-dismissible {
    position: relative;
    padding-right: 3rem;
}

.btn-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
}

.btn-close:hover {
    opacity: 1;
}

.btn-close::before {
    content: '\00d7';
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    color: #a0a0a0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
    background: rgba(128, 192, 255, 0.05);
}

.data-table code {
    font-size: 1rem;
}
