/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: url('images/background.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(135, 206, 250, 0.9), rgba(70, 130, 180, 0.8));
    z-index: -1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.section {
    display: none;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section.active {
    display: block;
}

/* Hero section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    min-height: calc(100vh - 80px);
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-icon {
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.feature-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(79, 172, 254, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Discord embed preview */
.hero-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.discord-embed {
    background: rgba(47, 49, 54, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.embed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.embed-icon {
    font-size: 1.5rem;
}

.embed-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.character-trait {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.trait-icon {
    width: 20px;
    text-align: center;
}

.trait-label {
    color: #b9bbbe;
    min-width: 80px;
}

.trait-value {
    color: #ffffff;
    font-weight: 500;
}

.embed-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #72767d;
    font-size: 0.8rem;
}

/* Content sections */
.content-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
}

/* Policy and Terms content */
.policy-content,
.terms-content {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1.1rem;
}

.policy-content h1,
.terms-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4facfe;
}

.policy-content h2,
.terms-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #4facfe;
}

.policy-content h3,
.terms-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #87ceeb;
}

.policy-content p,
.terms-content p {
    margin-bottom: 1rem;
}

.policy-content ul,
.terms-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.policy-content li,
.terms-content li {
    margin-bottom: 0.5rem;
}

.policy-content strong,
.terms-content strong {
    color: #4facfe;
}

/* Source code section */
.source-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(79, 172, 254, 0.3);
    border-color: #4facfe;
}

.source-content {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.source-file {
    display: none;
}

.source-file.active {
    display: block;
}

.source-file pre {
    margin: 0;
    padding: 2rem;
    overflow-x: auto;
    max-height: 600px;
}

.source-file code {
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4facfe;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title-icon {
        font-size: 3rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .content-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .source-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .content-container {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Prism.js customization */
.token.comment {
    color: #6a737d !important;
}

.token.keyword {
    color: #d73a49 !important;
}

.token.string {
    color: #032f62 !important;
}

.token.function {
    color: #6f42c1 !important;
}

.token.class-name {
    color: #6f42c1 !important;
}

.token.number {
    color: #005cc5 !important;
}

.token.operator {
    color: #d73a49 !important;
}

.token.punctuation {
    color: #24292e !important;
}

/* Loading states */
.loading {
    text-align: center;
    padding: 2rem;
    color: #ffffff;
    font-size: 1.1rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .nav-links .nav-link {
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
    }
    
    .nav-links .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
    }
} 