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

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 15% 50%, rgba(13, 37, 56, 0.5), transparent 50%), 
                radial-gradient(circle at 85% 30%, rgba(20, 50, 75, 0.4), transparent 50%),
                #030911;
    background-attachment: fixed;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.title {
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 3.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    transition: text-shadow 0.8s ease, transform 0.5s ease;
}

.title:hover {
    transform: scale(1.02);
}

.button-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.6;
}

.nav-button:hover {
    opacity: 1;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.footer {
    padding: 2rem;
    text-align: center;
    color: #27455c;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Docs specific styles */
.docs-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.docs-header {
    padding: 1.5rem 3rem;
}

.back-btn {
    font-size: 1.1rem;
    opacity: 0.8;
    display: inline-block;
}

.docs-container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding: 0 3rem 2rem 3rem;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.frame-left {
    flex: 0 0 35%;
    max-width: 35%;
    min-width: 0;
    align-self: flex-start;
    height: fit-content;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.frame-right {
    flex: 0 0 60%;
    max-width: 60%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-sizing: border-box;
}

.docs-title {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    font-weight: 600;
}

.api-meta {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8da4b5;
    font-weight: 600;
}

.meta-value {
    font-size: 1.05rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    word-break: break-all;
}

.badge.post {
    background: rgba(198, 120, 221, 0.15);
    color: #c678dd;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(198, 120, 221, 0.3);
}

.meta-value code {
    background: #020b12;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: #a0c2d8;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-helper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.code-block {
    background: #06111f;
    padding: 1.5rem;
    border-radius: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: #a0c2d8;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

.helper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
}

.helper-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.highlight { color: #c678dd; }
.string { color: #98c379; }
.keyword { color: #e5c07b; }

/* Demo specific styles */
.demo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #a0c2d8;
    font-size: 0.95rem;
}

.custom-file-upload:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.1));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.output-section {
    width: 100%;
    text-align: left;
    margin-top: 2.5rem;
}

.output-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #8da4b5;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Demo specific dynamic layout */
.demo-right {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 12rem);
    min-height: 450px;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-container {
        padding: 0 2rem 2rem 2rem;
        gap: 1.5rem;
    }
    .title {
        font-size: 4rem;
    }
}

@media (max-width: 900px) {
    .docs-container {
        flex-direction: column;
        align-items: center;
        padding: 0 1.5rem 2rem 1.5rem;
    }
    .frame-left, .frame-right {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .demo-right {
        height: 60vh;
        min-height: 400px;
    }
    .title {
        font-size: 3.5rem;
    }
    .docs-title {
        font-size: 1.8rem;
    }
    .docs-header {
        padding: 1.5rem;
    }
    .custom-file-upload {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
    .frame-left, .frame-right {
        padding: 1.5rem;
        border-radius: 12px;
    }
    .docs-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .action-btn {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
    .nav-button {
        font-size: 1.2rem;
    }
    .api-meta {
        gap: 1rem;
    }
    .meta-value {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }
    .code-block {
        font-size: 0.85rem;
        padding: 1rem;
    }
}
