/* ============================================
   Reference Page Styles
   ============================================ */

.reference-layout {
    padding: 2rem 0;
}

.reference-header {
    margin-bottom: 2rem;
}

.reference-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-box {
    width: 100%;
    max-width: 500px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.search-box:focus {
    outline: none;
    border-color: var(--primary-color);
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reference-table thead {
    background-color: var(--primary-color);
    color: white;
}

.reference-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.reference-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.reference-table tbody tr:hover {
    background-color: var(--light-gray);
}

.reference-table tbody tr:last-child td {
    border-bottom: none;
}

.tag-name,
.property-name,
.method-name {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: var(--primary-color);
}

.reference-description {
    color: #666;
    line-height: 1.6;
}

.reference-example {
    background-color: var(--code-bg);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.reference-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s;
}

.reference-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.reference-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', Courier, monospace;
}

.reference-card .syntax {
    background-color: var(--code-bg);
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    border-left: 3px solid var(--accent-color);
}

.reference-card .description {
    margin: 1rem 0;
    line-height: 1.6;
}

.reference-card .attributes,
.reference-card .parameters {
    margin-top: 1rem;
}

.reference-card .attributes h4,
.reference-card .parameters h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.reference-card ul {
    margin-left: 1.5rem;
    color: #666;
}

