/* landing.css - Modern, premium design for YAAPI */
:root {
    --primary: #6d5fdf;
    --primary-dark: #5a4cb5;
    --secondary: #1a1a2e;
    --text: #3b4151;
    --text-light: #666;
    --bg-light: #f8f9ff;
    --border: rgba(0,0,0,0.08);
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #ffffff;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header styles */
header {
    margin-bottom: 60px;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.lead {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 0;
    font-weight: 500;
}

/* Section styles */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    letter-spacing: -0.01em;
}

.subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 40px;
    color: var(--primary);
}

/* Version tags */
.version-tags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.version-tag {
    font-size: 12px;
    font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    background: #f4f4f4;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
}

/* Endpoint cards */
.endpoint-card {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.endpoint-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.method-badge {
    display: inline-block;
    background: linear-gradient(135deg, #49cc90 0%, #2d9968 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-right: 14px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}

.endpoint-path {
    font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 15px;
    color: #333;
    font-weight: 600;
    vertical-align: middle;
}

/* Parameter list */
.param-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.param-item {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.param-item:last-child {
    border-bottom: none;
}

.param-name {
    font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
    font-weight: 600;
    color: #d63384;
    width: 160px;
    flex-shrink: 0;
    font-size: 14px;
}

.param-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid #eee;
    background: var(--bg-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.lang-selector {
    font-size: 13px;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-selector:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(109, 95, 223, 0.1);
}

/* Utility classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Alert styles */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .endpoint-card {
        padding: 16px;
    }
    
    .param-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .param-name {
        width: 100%;
    }
}