/* Protocol Page Specific Styles */

/* Protocol Hero */
.protocol-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 10px 20px;
    text-align: center;
}

.protocol-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.protocol-badge i {
    font-size: 2.5rem;
    color: white;
}

.protocol-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.protocol-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.protocol-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.meta-item i {
    opacity: 0.8;
}

/* Protocol Layout */
.protocol-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.protocol-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-nav {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.sidebar-nav h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-nav a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 16px;
}

.sidebar-links {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-links h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}

/* Protocol Content */
.protocol-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.content-section {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e8e8e8;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.content-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 25px;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Info Callout */
.info-callout {
    background: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.info-callout i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Query Form */
.query-form-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.query-form {
    background: white;
    border-radius: 8px;
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--secondary-color);
}

.form-group .required {
    color: var(--accent-color);
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Query URL Display */
.query-url {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.query-url h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.url-display {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.url-display code {
    flex: 1;
    color: var(--secondary-color);
    word-break: break-all;
    font-size: 0.9rem;
}

.copy-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #2980b9;
}

/* Results Container */
.results-container {
    margin-top: 25px;
    padding: 20px;
    background: white;
    overflow-x: auto;
    border-radius: 8px;
}

.results-container h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.results-container pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Error Container */
.error-container {
    margin-top: 25px;
    padding: 20px;
    background: #fff5f5;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: start;
}

.error-container i {
    color: var(--accent-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.error-container div {
    color: #c53030;
}

/* Parameter Table */
.param-table {
    overflow-x: auto;
    margin: 25px 0;
}

.param-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.param-table th {
    background: var(--light-bg);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid #dee2e6;
}

.param-table td {
    padding: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.param-table code {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.badge-required {
    background: #fee;
    color: #c53030;
}

.badge-optional {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Example Cards */
.example-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.example-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.example-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.code-block {
    position: relative;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px 50px 15px 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.code-block code {
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-block .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.code-block pre {
    margin: 0;
}

/* Endpoint Cards */
.endpoint-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.endpoint-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.http-method {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.http-method.get {
    background: #e3f2fd;
    color: #1976d2;
}

.http-method.post {
    background: #e8f5e9;
    color: #388e3c;
}

.endpoint-path {
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-box {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.info-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.info-box h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    color: var(--success-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.benefit-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.cta-box h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Header (for about page) */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .protocol-layout {
        grid-template-columns: 1fr;
    }

    .protocol-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .protocol-hero h1 {
        font-size: 2.2rem;
    }

    .protocol-subtitle {
        font-size: 1.1rem;
    }

    .protocol-meta {
        flex-direction: column;
        gap: 10px;
    }

    .protocol-content {
        padding: 25px 20px;
        overflow-x: auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .sidebar-nav,
    .sidebar-links {
        padding: 20px;
    }

    .url-display {
        flex-direction: column;
    }

    .param-table {
        font-size: 0.9rem;
    }

    .param-table th,
    .param-table td {
        padding: 10px;
    }
}