.tool-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }
}

.categories-panel, .templates-panel {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
}

.categories-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-main);
    color: var(--text-main);
    font-weight: 500;
}

.category-list li:hover {
    background: var(--border-color);
}

.category-list li.active {
    background: var(--primary-color);
    color: white;
}

.templates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.template-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.template-text {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.copy-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    align-self: flex-start;
}

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

.toast {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: bottom 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.toast.show {
    bottom: 20px;
}

.mt-4 { margin-top: 2rem; }
.seo-content ul, .seo-content ol { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.seo-content li { margin-bottom: 0.5rem; }
.seo-content h2, .seo-content h3 { margin-top: 1.5rem; margin-bottom: 1rem; }

body, html { overflow-x: hidden; margin: 0; padding: 0; }
