/* GOGIES IDE - Modern Sleek Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #090a0f;
    --bg-card: #11131c;
    --bg-card-hover: #161a29;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-color-hover: rgba(99, 102, 241, 0.3);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --accent: #14b8a6;
    --accent-glow: rgba(20, 184, 166, 0.15);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #090a0f;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients Glows */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    background-color: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--primary-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
    color: white;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

#galaxy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-hover);
}

/* Mockup Interface */
.mockup-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    margin-bottom: 100px;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.mockup-title {
    margin-left: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.mockup-body {
    display: flex;
    height: 400px;
}

.mockup-sidebar {
    width: 200px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    padding: 16px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-column: column;
    gap: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.mockup-editor {
    flex: 1;
    padding: 24px;
    background: #0d0f17;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #818cf8;
    overflow-y: auto;
}

.line-comment { color: #4b5563; }
.line-keyword { color: #f43f5e; }
.line-string { color: #10b981; }
.line-text { color: #f3f4f6; }

/* Features Section */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Documentation Layout */
.docs-layout {
    display: flex;
    gap: 48px;
    padding: 60px 0 100px;
}

.docs-sidebar {
    width: 280px;
    position: sticky;
    top: 120px;
    height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 16px;
}

.docs-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-sidebar .menu-header {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-top: 24px;
    margin-bottom: 8px;
}

.docs-sidebar .menu-header:first-child {
    margin-top: 0;
}

.docs-sidebar a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    border-left: 2px solid transparent;
}

.docs-sidebar a:hover, .docs-sidebar a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
    border-left-color: var(--primary);
}

.docs-content {
    flex: 1;
    max-width: 800px;
}

.docs-section {
    margin-bottom: 80px;
    scroll-margin-top: 120px;
}

.docs-section h1 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.docs-section h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.docs-section p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.docs-section ul, .docs-section ol {
    margin-left: 24px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.docs-section li {
    margin-bottom: 8px;
}

/* Callouts Alert Styles */
.callout {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 32px 0;
}

.callout.warning {
    background: rgba(20, 184, 166, 0.05);
    border-left-color: var(--accent);
}

.callout-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Code block container styling */
pre {
    background: #0d0f17;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

code {
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
}

p code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.85rem;
}

/* Documentation Screenshots */
.docs-image-wrapper {
    margin: 24px 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.docs-image-wrapper:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 12px 36px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.docs-screenshot {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* Navigation Dropdown styling */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    min-width: 280px;
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1010;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    border-radius: 6px;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item-dropdown:hover .dropdown-menu {
    display: grid;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    background-color: #07080c;
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive CSS */
@media(max-width: 992px) {
    .docs-layout {
        flex-direction: column;
    }
    
    .docs-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 24px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media(max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        align-items: flex-start;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Dropdown active language highlighting */
.dropdown-menu li a.active-lang {
    color: var(--primary) !important;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.08);
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .docs-sidebar {
    border-right: none;
    border-left: 1px solid var(--border-color);
    padding-right: 0;
    padding-left: 16px;
}

[dir="rtl"] .docs-sidebar a {
    border-left: none;
    border-right: 2px solid transparent;
    text-align: right;
}

[dir="rtl"] .docs-sidebar a:hover, [dir="rtl"] .docs-sidebar a.active {
    border-right-color: var(--primary);
    border-left-color: transparent;
}

[dir="rtl"] .callout {
    border-left: none;
    border-right: 4px solid var(--primary);
    border-radius: 12px 0 0 12px;
}

[dir="rtl"] .callout.warning {
    border-right-color: var(--accent);
}

[dir="rtl"] .dropdown-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .dropdown-menu li a {
    text-align: right;
}

