@font-face {
    font-family: "Geist";
    src: url("../resources/Geist[wght].woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "Geist Mono";
    src: url("../resources/GeistMono[wght].woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        "Geist",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 20px 0;
    margin-bottom: 30px;
    text-align: center;
}

.metadata-display {
    margin-top: 12px;
    font-size: 13px;
    color: #8b949e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.metadata-item {
    font-family: "Geist Mono", monospace;
}

.metadata-item span {
    color: #58a6ff;
    font-weight: 500;
}

.metadata-separator {
    color: #30363d;
}

h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.search-section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.query-section {
    margin-bottom: 20px;
}

.query-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.query-box {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 14px;
    font-family: "Geist Mono", monospace;
    resize: vertical;
    line-height: 1.5;
}

.query-box:focus {
    outline: none;
    border-color: #58a6ff;
}

.query-box::placeholder {
    color: #6e7681;
    font-family: "Geist Mono", monospace;
}

.query-error {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid #f85149;
    border-radius: 6px;
    color: #f85149;
    font-size: 13px;
    font-family: "Geist Mono", monospace;
}

.examples-section {
    margin-bottom: 20px;
}

.examples-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.example-btn {
    padding: 8px 12px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
    transition: all 0.2s;
    font-family: "Geist Mono", monospace;
}

.example-btn:hover {
    background: #30363d;
    border-color: #58a6ff;
    transform: translateY(-1px);
}

input,
textarea,
button {
    font-family: "Geist", sans-serif;
}

.stats {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    color: #58a6ff;
    margin-left: 5px;
}

.results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 900px) {
    .results {
        grid-template-columns: 1fr;
    }
}

.result-item {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 16px 20px;
    transition: all 0.2s;
}

.result-item:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #58a6ff;
}

.api-link {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s;
}

.api-link:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.class-name {
    font-size: 13px;
    color: #8b949e;
    margin-top: 2px;
}

.inheritance {
    font-size: 12px;
    color: #6e7681;
    margin-top: 4px;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: "Geist Mono", monospace;
}

.tag.property {
    background: #1f6feb;
    color: #fff;
}
.tag.event {
    background: #238636;
    color: #fff;
}
.tag.function {
    background: #a371f7;
    color: #fff;
}
.tag.callback {
    background: #d29922;
    color: #000;
}
.tag.enum {
    background: #da3633;
    color: #fff;
}
.tag.unreplicated {
    background: #6e7681;
    color: #fff;
}
.tag.deprecated {
    background: #f85149;
    color: #fff;
}
.tag.hidden {
    background: #8b949e;
    color: #fff;
}
.tag.unscriptable {
    background: #bc8f8f;
    color: #fff;
}
.tag.security {
    background: #da3633;
    color: #fff;
}

.result-details {
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.detail-row {
    gap: 10px;
}

.detail-label {
    color: #8b949e;
    min-width: 80px;
}

.detail-value {
    color: #c9d1d9;
    font-family: "Geist Mono", monospace;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #8b949e;
    font-size: 16px;
}

.reset-btn {
    padding: 8px 16px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #30363d;
    border-color: #58a6ff;
}

.loading-indicator {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 20px;
    color: #8b949e;
    font-size: 14px;
    background: #161b22;
    border: 1px dashed #30363d;
    border-radius: 6px;
    margin-top: 10px;
}

.enum-items-container {
    margin-top: 12px;
    display: grid;
    gap: 6px;
}

.enum-item {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 8px 12px;
}

.enum-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enum-item-name {
    font-size: 13px;
    font-family: "Geist Mono", monospace;
    color: #c9d1d9;
}

.enum-item-value {
    font-size: 12px;
    font-family: "Geist Mono", monospace;
    color: #8b949e;
}

.enum-item-tags {
    margin-top: 6px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.result-item.enum-result {
    grid-column: span 1;
}
