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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

input[type="url"] {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="url"]:focus {
    border-color: #0066cc;
}

input[type="url"]:disabled {
    background: #f0f0f0;
}

button[type="submit"] {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #0066cc;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:hover:not(:disabled) {
    background: #0052a3;
}

button[type="submit"]:disabled {
    background: #999;
    cursor: not-allowed;
}

.error {
    margin-top: 1rem;
    padding: 1rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c00;
}

.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.result h2 {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
}

.snippet {
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.content {
    color: #444;
    font-size: 0.875rem;
    line-height: 1.7;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    white-space: pre-wrap;
}


.tag {
    padding: 0.25rem 0.75rem;
    background: #e8f4ff;
    color: #0066cc;
    border-radius: 20px;
    font-size: 0.875rem;
}

.mdx-section {
    margin-top: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mdx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.mdx-header h3 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.download-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: #28a745;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #218838;
}

.mdx-code {
    margin: 0;
    padding: 1.5rem;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
