/* Base styles */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --dark-bg: #1e293b;
    --light-bg: #f5f7fa;
    --border-color: #e1e4e8;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 34px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 60px 0;
    margin-bottom: 50px;
    margin-top: 20px;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.3;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.cta-buttons {
    margin-bottom: 40px;
}

.primary-btn, .secondary-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white !important;
    margin-right: 10px;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(37, 99, 235, 0.2);
    color: white !important;
}

.secondary-btn {
    background-color: white;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: #f0f4ff;
    transform: translateY(-2px);
    color: var(--primary-hover) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.api-stats {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 0 40px;
    border-right: 1px solid var(--border-color);
}

.stat:last-child {
    border-right: none;
}

.stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Authentication section */
.authentication {
    margin-bottom: 50px;
}

.code-example {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.code-example h3, .code-example h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1rem;
}

pre {
    background-color: #334155;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #e2e8f0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

.auth-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.note {
    background-color: #fffbeb;
    border-left: 4px solid #fbbf24;
    padding: 15px 20px;
    border-radius: 5px;
}

.note h4 {
    color: #92400e;
    margin-bottom: 10px;
}

.note p {
    color: #92400e;
    margin-bottom: 0;
}

.hidden {
    display: none;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Endpoints section */
.endpoint {
    margin-bottom: 40px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.endpoint:last-child {
    margin-bottom: 0;
}

.endpoint-url {
    background-color: #f1f5f9;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-bottom: 15px;
    display: inline-block;
    color: var(--primary-color);
}

.endpoint h3 {
    margin-top: 0;
}

.params-table, .rate-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.params-table th, .params-table td,
.rate-table th, .rate-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.params-table th, .rate-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-dark);
}

.params-table td, .rate-table td {
    color: var(--text-light);
}

/* Response format section */
.response-format .code-example {
    margin-top: 20px;
}

/* Pricing section */
.pricing-cards {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.pricing-card {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom-left-radius: 5px;
}

.pricing-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.period {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.features {
    list-style: none;
    padding: 20px;
}

.features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.95rem;
}

.features li:before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

.features li:last-child {
    border-bottom: none;
}

.pricing-card .primary-btn {
    display: block;
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

.enterprise {
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.enterprise h3 {
    margin-bottom: 10px;
}

.enterprise p {
    margin-bottom: 20px;
}

.enterprise .primary-btn {
    display: inline-block;
}

/* Code examples section */
.tabs {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    color: var(--text-light);
}

.tab-btn:hover {
    background-color: #e2e8f0;
}

.tab-btn.active {
    background-color: white;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Footer styles */
footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 60px 0 20px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 28px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 10px;
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.license {
    margin-top: 15px;
    font-weight: 500;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 15px;
}

.footer-column h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .container {
        padding: 15px;
    }
    
    .pricing-cards {
        flex-direction: column;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .footer-columns {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 1 0 50%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 20px;
        margin-bottom: 10px;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .api-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat {
        padding: 15px 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .stat:last-child {
        border-bottom: none;
    }
    
    .footer-column {
        flex: 1 0 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        margin-right: 0;
    }
    
    .tab-header {
        overflow-x: auto;
    }
}

/* Page specific styles */
.status-page, .changelog-page, .support-page {
    padding: 40px 0;
}

.status-page h1, .changelog-page h1, .support-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

.status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
}

.status-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
}

.status-circle.operational {
    background-color: #10b981;
}

.status-circle.degraded {
    background-color: #f59e0b;
}

.status-circle.outage {
    background-color: #ef4444;
}

.status-info h3 {
    margin: 0 0 5px;
}

.changelog-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-date {
    display: inline-block;
    padding: 5px 10px;
    background-color: #e2e8f0;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.changelog-title {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.changelog-type {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 10px;
    color: white;
}

.changelog-type.feature {
    background-color: #10b981;
}

.changelog-type.improvement {
    background-color: #3b82f6;
}

.changelog-type.bugfix {
    background-color: #f59e0b;
}

.support-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.support-category {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
}

.support-category:hover {
    transform: translateY(-5px);
}

.support-category h3 {
    margin-bottom: 15px;
}

.faq-container {
    margin-top: 60px;
}

.faq-container h2 {
    margin-bottom: 30px;
    text-align: center;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    background-color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8fafc;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
} 