/* Indra Theme - Base 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;
    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;
}

/* 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;
}

.site-footer a.pi-login {
    color: #6080a0;
    border-bottom: none;
    font-size: 1.2rem;
}

.site-footer a.pi-login:hover {
    color: #80c0ff;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-grid > div {
    text-align: center;
}

/* 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; }

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