/* Base Styles */
:root {
    --primary: #6c5ce7;
    --primary-light: #afa4ff;
    --primary-dark: #5649c0;
    --secondary: #383838;
    --dark: #2d3436;
    --light: #f5f6fa;
    --danger: #d63031;
    --success: #15ff00;
    --warning: #fdcb6e;
    --info: #0984e3;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}
.purple-letter {
    color: #6c5ce7; /* Your purple color */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #2a2a3a);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Lua Syntax Highlighting */
pre code.language-lua {
    display: block;
    padding: 15px;
    border-radius: 5px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Token colors for Lua */
.token.keyword { color: #569cd6; }
.token.function { color: #dcdcaa; }
.token.string { color: #ce9178; }
.token.number { color: #b5cea8; }
.token.comment { color: #6a9955; }
.token.operator { color: #d4d4d4; }
.token.punctuation { color: #d4d4d4; }

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar, .file-viewer {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* Script Browser Modal Styles */
.script-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: #2a2a3a;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary);
}

.file-browser {
    display: flex;
    height: 600px;
    margin-top: 20px;
    gap: 20px;
}

.sidebar {
    width: 250px;
    background-color: #252535;
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto;
}

.file-viewer {
    flex: 1;
    background-color: #252535;
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto;
}

.folder {
    margin-bottom: 10px;
}

.folder-header i {
    margin-right: 10px; /* Increased spacing between icon and text */
    width: 20px; /* Fixed width for consistent alignment */
    text-align: center;
}

.folder-header:hover {
    background-color: #3a3a4a;
}

.folder-contents {
    padding-left: 20px;
    margin-top: 5px;
    display: none;
}

.file-item i {
    margin-right: 10px; /* Same spacing for file icons */
    width: 20px;
    text-align: center;
}

.file-item:hover {
    background-color: #3a3a4a;
}

.file-item.active {
    background-color: var(--primary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 1.2rem;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.loading {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

.error {
    color: var(--danger);
    padding: 10px;
    background: rgba(214, 48, 49, 0.1);
    border-radius: 5px;
    margin: 10px 0;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Glass Morphism Effect */
.glass-nav, .glass-footer, .script-card, .feature-card, .code-editor, .community-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
}



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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-brand img {
    height: 40px;
}

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

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

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

.btn-login {
    background: transparent;
    color: white;
    border: none;
}

.btn-login:hover {
    color: var(--secondary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-script {
    width: 100%;
    padding: 0.8rem;
    background: rgba(108, 92, 231, 0.2);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-script:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-community {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 10rem 2rem 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Sections Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Scripts Section */
.scripts-section {
    padding: 6rem 2rem;
    position: relative;
}

.scripts-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.script-card {
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s;
    position: relative;
}

.script-card:hover {
    transform: translateY(-10px);
}

.script-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.script-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.script-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.script-card p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

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

.script-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.script-features i {
    color: var(--success);
}

.script-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Code Section */
.code-section {
    padding: 6rem 2rem;
}

.code-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
}

.code-editor {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
}

.editor-header {
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.editor-title {
    margin-left: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.editor-content {
    padding: 1.5rem;
}

.editor-content pre {
    margin: 0;
    overflow-x: auto;
}

.editor-content code {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.code-docs {
    flex: 1;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.code-docs h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.docs-item {
    margin-bottom: 1.5rem;
}

.docs-item h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.docs-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Community Section */
.community-section {
    padding: 6rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.community-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.community-card {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
}

.community-card:hover {
    transform: translateY(-10px);
}

.community-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.community-card.discord .community-icon {
    color: #7289da;
}

.community-card.forum .community-icon {
    color: var(--primary);
}

.community-card.github .community-icon {
    color: var(--dark);
}

.community-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.community-card p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

/* Footer */
.glass-footer {
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand img {
    height: 40px;
    width: fit-content;
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 50px 0 0 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 0 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Syntax Highlighting */
.hljs {
    background: transparent !important;
}

.language-lua .hljs-keyword {
    color: #c678dd;
}

.language-lua .hljs-function {
    color: #61afef;
}

.language-lua .hljs-string {
    color: #98c379;
}

.language-lua .hljs-number {
    color: #d19a66;
}

.language-lua .hljs-comment {
    color: #5c6370;
    font-style: italic;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .code-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Script Cards Container */
.scripts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; /* This makes cards stretch to equal height */
}

/* Script Card - Updated for equal height */
.script-card {
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height of grid cell */
    min-height: unset; /* Set minimum height for all cards */
}

/* Card Content - Add this new class */
.script-card-content {
    flex: 1; /* Makes this element grow to fill available space */
    display: flex;
    flex-direction: column;
}

/* Push button to bottom */
.script-card .btn-script {
    margin-top: auto; /* Pushes button to bottom */
}

/* Features list - make scrollable if content is too long */
.script-features {
    flex: 1;
    overflow-y: auto;
    max-height: none;
    padding-right: 5px;
    margin-bottom: 1rem;
}

/* Custom scrollbar for features */
.script-features::-webkit-scrollbar {
    width: 5px;
}

.script-features::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.script-features::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

