/* Symbol detail page - same styles as indices-api */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

.symbol-header {
    color: #212529;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
}

.symbol-header h1, .symbol-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #212529;
    font-weight: 700;
}

.symbol-code {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 400;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.header-cta {
    margin-top: 1rem;
}

.header-cta p {
    margin: 0;
    font-size: 1.15rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta-button {
    background: #6658ea;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.cta-button:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.4);
    color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.info-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #4f46e5;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-card p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.info-card .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
    margin-bottom: 0.5rem;
}

.content-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
}

.content-section h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #212529;
    border-bottom: 2px solid #4f46e5;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

.content-section h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #212529;
    font-weight: 600;
}

.content-section ul, .content-section ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    list-style-type: disc;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: #6b7280;
    display: list-item;
}

.content-section p {
    color: #6b7280;
    line-height: 1.7;
}

.api-endpoint {
    background: #1A202C;
    color: #E2E8F0;
    padding: 24px;
    border-radius: 12px;
    margin: 0 0 24px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    word-break: break-all;
    font-size: 14px;
    position: relative;
}

.response-example {
    background: #1E1E1E;
    color: #f7fafc;
    padding: 24px;
    margin: 0 0 24px 0;
    border-radius: 12px;
    position: relative;
}

.response-example pre {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: #E2E8F0;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: transparent;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #6658ea;
    color: white !important;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s ease;
    z-index: 10;
}

.copy-btn:hover {
    background: #5546e8;
}

table {
    width: 100%;
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5e0;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-collapse: separate;
    border-spacing: 0;
}

table thead tr th {
    background: #2d3748;
    color: #ffffff;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #1a202c;
}

table tbody tr {
    background-color: #ffffff;
}

table tbody tr:nth-child(even) {
    background-color: #f7fafc;
}

table tbody tr td {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    background-color: inherit;
}

table tbody tr td:first-of-type {
    width: 25%;
    font-weight: 600;
}

table tbody tr td code {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #DC2626;
    background: rgba(40, 63, 89, 0.1);
    border: 1px solid #D1D5DB;
    font-weight: 500;
}

.related-symbols {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.symbol-badge {
    background: #6658ea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.symbol-badge:hover {
    background: #4338ca;
    color: white;
    text-decoration: none !important;
}

details.endpoint-details {
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4f46e5;
    overflow: hidden;
}

details.endpoint-details[open] {
    border-left-color: #4338ca;
}

details.endpoint-details summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #212529;
    font-size: 1.2rem;
    user-select: none;
    list-style: none;
    position: relative;
    transition: background-color 0.2s;
}

details.endpoint-details summary:hover {
    background-color: #eef2ff;
}

details.endpoint-details summary::-webkit-details-marker {
    display: none;
}

details.endpoint-details summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s;
    font-size: 0.8rem;
    color: #4f46e5;
}

details.endpoint-details[open] summary::before {
    transform: rotate(90deg);
}

details.endpoint-details .endpoint-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

details.endpoint-details .endpoint-content h4 {
    margin-top: 0.8rem;
    margin-bottom: 0.5rem;
}

.content-section code, .endpoint-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
}

.api-key-card {
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.api-key-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.api-key-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.02em;
    width: 100%;
}

.api-key-header .key-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6658ea 0%, #5a4fd8 100%);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(102, 88, 234, 0.3);
}

.api-key-container {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.api-key-container:focus-within {
    border-color: #6658ea;
    box-shadow: 0 0 0 4px rgba(102, 88, 234, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.api-key-container .modern-textarea {
    flex: 1;
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #1a202c;
    resize: none;
    overflow: hidden;
    box-shadow: none;
    height: auto;
    min-height: auto;
    max-height: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.api-key-container .modern-textarea:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.btn-modern-copy {
    background: linear-gradient(135deg, #6658ea 0%, #5a4fd8 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 88, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
    height: auto;
}

.btn-modern-copy:hover {
    background: linear-gradient(135deg, #5a4fd8 0%, #4f44c7 100%);
    box-shadow: 0 6px 20px rgba(102, 88, 234, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-modern-copy:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 88, 234, 0.3);
}

.btn-modern-copy i {
    font-size: 14px;
}

.btn-modern-reset {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-modern-reset:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px) rotate(180deg);
    color: white;
}

.btn-modern-reset:active {
    transform: translateY(0) rotate(180deg);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-modern-reset i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .symbol-header h1, .symbol-header h2 {
        font-size: 2rem;
    }
    .content-section {
        padding: 1rem;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1280px) {
    .slice .container {
        max-width: 1280px;
    }
}
