/*
 * LCARS Website Theme
 * Inspired by Star Trek LCARS interface
 */

@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;500;600;700&display=swap');

:root {
    /* LCARS Colors */
    --lcars-orange: #ff9933;
    --lcars-gold: #ffcc66;
    --lcars-peach: #ffcc99;
    --lcars-purple: #664466;
    --lcars-lilac: #cc99cc;
    --lcars-blue: #99ccff;
    --lcars-navy: #3366cc;
    --lcars-teal: #006699;
    --lcars-green: #99dd66;
    --lcars-red: #cc4444;
    --lcars-bg: #000000;
    --lcars-text: #99ccff;
    
    /* Spacing */
    --gap: 1.5rem;
    --radius: 2rem;
}

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

body {
    font-family: 'Antonio', 'Arial Narrow', sans-serif;
    background: var(--lcars-bg);
    color: var(--lcars-text);
    line-height: 1.6;
    font-size: 18px;
    min-height: 100vh;
}

/* LCARS Frame */
.lcars-frame {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    gap: 8px;
    padding: 8px;
}

/* Sidebar */
.lcars-sidebar {
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lcars-sidebar-top {
    background: var(--lcars-lilac);
    height: 100px;
    border-radius: var(--radius) 0 0 0;
}

.lcars-sidebar-mid {
    background: var(--lcars-orange);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
}

.lcars-sidebar-bottom {
    background: var(--lcars-purple);
    height: 80px;
    border-radius: 0 0 0 var(--radius);
}

.lcars-nav-item {
    background: var(--lcars-gold);
    margin: 4px 0;
    margin-right: -8px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius) 0 0 var(--radius);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.2s;
    display: block;
}

.lcars-nav-item:hover {
    background: var(--lcars-peach);
    padding-left: 1.5rem;
}

/* Header */
.lcars-header {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.lcars-header-elbow {
    background: var(--lcars-lilac);
    width: 200px;
    border-radius: 0 0 var(--radius) 0;
    position: relative;
}

.lcars-header-elbow::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 40px;
    background: var(--lcars-bg);
    border-radius: var(--radius) 0 0 0;
}

.lcars-header-bar {
    flex: 1;
    background: var(--lcars-orange);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
}

.lcars-header-end {
    background: var(--lcars-blue);
    width: 150px;
    border-radius: 0 var(--radius) var(--radius) 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lcars-title {
    color: #000;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lcars-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.lcars-stardate {
    color: #000;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Main Content */
.lcars-main {
    padding: 2rem;
    overflow-y: auto;
}

.lcars-panel {
    background: rgba(153, 204, 255, 0.05);
    border: 2px solid var(--lcars-teal);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.lcars-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lcars-panel-indicator {
    width: 80px;
    height: 30px;
    background: var(--lcars-orange);
    border-radius: var(--radius);
}

.lcars-panel-indicator.blue { background: var(--lcars-blue); }
.lcars-panel-indicator.purple { background: var(--lcars-purple); }
.lcars-panel-indicator.green { background: var(--lcars-green); }

.lcars-panel-title {
    color: var(--lcars-orange);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lcars-panel p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Hero with logo */
.lcars-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lcars-hero-logo {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .lcars-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .lcars-hero-logo {
        width: 150px;
        height: 150px;
    }
}

/* Services Grid */
.lcars-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.lcars-service-card {
    background: linear-gradient(135deg, rgba(102, 68, 102, 0.3), rgba(0, 0, 0, 0.5));
    border: 2px solid var(--lcars-purple);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s;
}

.lcars-service-card:hover {
    border-color: var(--lcars-lilac);
    transform: translateY(-4px);
}

.lcars-service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lcars-service-card h3 {
    color: var(--lcars-gold);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.lcars-service-card p {
    color: var(--lcars-text);
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.lcars-contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.lcars-contact-item {
    background: rgba(255, 153, 51, 0.1);
    border: 1px solid var(--lcars-orange);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
}

.lcars-contact-item strong {
    color: var(--lcars-orange);
}

.lcars-contact-item a {
    color: var(--lcars-blue);
    text-decoration: none;
}

.lcars-contact-item a:hover {
    color: var(--lcars-gold);
}

/* Footer */
.lcars-footer {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.lcars-footer-elbow {
    background: var(--lcars-purple);
    width: 200px;
    border-radius: 0 var(--radius) 0 0;
    position: relative;
}

.lcars-footer-elbow::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 30px;
    background: var(--lcars-bg);
    border-radius: 0 0 var(--radius) 0;
}

.lcars-footer-bar {
    flex: 1;
    background: var(--lcars-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    height: 50px;
}

.lcars-footer-end {
    background: var(--lcars-navy);
    width: 150px;
    border-radius: var(--radius) 0 0 var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--lcars-text);
}

.lcars-footer-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.lcars-footer-link:hover {
    color: var(--lcars-gold);
}

/* Blinking cursor effect */
.lcars-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scan line effect */
.lcars-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lcars-blue), transparent);
    animation: scanline 4s ease-in-out infinite;
    opacity: 0;
}

.lcars-panel {
    position: relative;
    overflow: hidden;
}

.lcars-panel:hover::before {
    opacity: 1;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); height: 100%; }
}

/* Star field background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 370px 50px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 450px 180px, rgba(255,255,255,0.2), transparent);
    background-size: 500px 200px;
    animation: twinkle 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    .lcars-frame {
        grid-template-columns: 1fr;
    }
    
    .lcars-sidebar {
        display: none;
    }
    
    .lcars-header-elbow,
    .lcars-footer-elbow {
        display: none;
    }
    
    .lcars-header-bar,
    .lcars-footer-bar {
        border-radius: var(--radius);
    }
    
    .lcars-header-bar {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 0.25rem;
    }
    
    .lcars-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .lcars-stardate {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .lcars-header-end {
        display: none;
    }
    
    .lcars-footer-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .lcars-footer-end {
        width: 100%;
        border-radius: var(--radius);
        height: 40px;
    }
}

/* Legal pages */
.lcars-legal {
    max-width: 800px;
}

.lcars-legal h1 {
    color: var(--lcars-orange);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lcars-legal .updated {
    color: var(--lcars-purple);
    margin-bottom: 2rem;
}

.lcars-legal h2 {
    color: var(--lcars-gold);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.lcars-legal ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.lcars-legal li {
    margin-bottom: 0.5rem;
}

.lcars-legal a {
    color: var(--lcars-blue);
}
