/* ============================================================================
 * Additional Page Styles
 * ========================================================================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.alt-bg {
    background-color: var(--surface);
}

/* Feature Details */
.feature-detail {
    margin-bottom: 48px;
    padding: 32px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.feature-detail h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-detail p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.feature-detail p strong {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Code Examples in Features */
.code-example {
    margin-top: 24px;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
}

.code-example pre {
    margin: 0;
}

.code-example code {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

/* Platform Cards */
.feature-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.platform-card {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.platform-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.platform-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.platform-card ul {
    list-style: none;
    padding-left: 0;
}

.platform-card ul li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Steps/Instructions */
.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    margin-bottom: 40px;
    padding: 24px;
    background-color: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: 600;
    margin-right: 12px;
}

.step h3 {
    display: inline-block;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    margin: 12px 0;
    line-height: 1.6;
}

.step pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}

.step code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

/* Example Cards */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.example-card {
    background-color: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.example-card:hover {
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-4px);
}

.example-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
}

.example-header h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.example-header p {
    font-size: 14px;
    opacity: 0.9;
}

.example-body {
    padding: 24px;
}

.example-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.example-features {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.example-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.example-code {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin-top: 16px;
}

.example-code pre {
    margin: 0;
}

.example-code code {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
}

/* API Reference */
.api-section {
    margin-bottom: 48px;
}

.api-function {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.api-signature {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.api-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.api-params {
    margin-top: 16px;
}

.api-params h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.api-params table {
    width: 100%;
    border-collapse: collapse;
}

.api-params th {
    text-align: left;
    padding: 8px;
    background-color: var(--surface);
    border-bottom: 2px solid var(--border);
    font-weight: 500;
    font-size: 14px;
}

.api-params td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

/* File Listing */
.file-tree {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

.file-tree ul {
    list-style: none;
    padding-left: 20px;
}

.file-tree > ul {
    padding-left: 0;
}

.file-tree li {
    padding: 4px 0;
    color: var(--text-secondary);
}

.file-tree .directory {
    font-weight: 600;
    color: var(--primary-color);
}

.file-tree .file {
    color: var(--text-secondary);
}

.file-tree .directory::before {
    content: "📁 ";
}

.file-tree .file::before {
    content: "📄 ";
}

/* Download Section */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.download-card {
    background-color: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px var(--shadow);
}

.download-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.download-card h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.download-button {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: var(--primary-dark);
}

.version-info {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Info Boxes */
.info-box {
    background-color: #e8f0fe;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
}

.info-box.warning {
    background-color: #fef7e0;
    border-left-color: var(--accent-yellow);
}

.info-box.success {
    background-color: #e6f4ea;
    border-left-color: var(--secondary-color);
}

.info-box p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.tab {
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
}
