/* Tool-specific styles only - base styles are in tool-layout.css */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-btn {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #888888;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.type-btn:hover {
    background-color: #242424;
    border-color: #374151;
    color: #d1d5db;
}

.type-btn.active {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #3b82f6;
}

.type-btn .pro-badge {
    color: #0a0a0a;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.schema-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-label {
    font-size: 12px;
    font-weight: 500;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}

.field-label.required {
    border-left: 2px solid #3b82f6;
    padding-left: 8px;
}

.text-input {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    width: 100%;
    transition: border-color 150ms ease;
}

.text-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.text-input::placeholder {
    color: #6b7280;
}

.text-input.url-input {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 13px;
}

.textarea-input {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    width: 100%;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
    transition: border-color 150ms ease;
}

.textarea-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.textarea-input::placeholder {
    color: #6b7280;
}

.select-input {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: border-color 150ms ease;
}

.select-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.select-input option {
    background-color: #1a1a1a;
}

.file-input {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    width: 100%;
    cursor: pointer;
}

.file-input::file-selector-button {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    margin-right: 12px;
    transition: background-color 150ms ease;
}

.file-input::file-selector-button:hover {
    background-color: #374151;
}

.repeater-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repeater-item {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repeater-index {
    font-size: 12px;
    font-weight: 500;
    color: #888888;
    letter-spacing: 0.02em;
}

.repeater-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 150ms ease;
    font-family: inherit;
}

.repeater-remove:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.repeater-add {
    background: none;
    border: 2px dashed #2a2a2a;
    color: #888888;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 150ms ease;
}

.repeater-add:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

.nested-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 13px;
    color: #3b82f6;
    font-weight: 500;
    background: none;
    border: none;
    font-family: inherit;
    transition: color 150ms ease;
}

.nested-toggle:hover {
    color: #60a5fa;
}

.nested-toggle .toggle-arrow {
    transition: transform 150ms ease;
    font-size: 10px;
}

.nested-toggle.expanded .toggle-arrow {
    transform: rotate(90deg);
}

.nested-fields {
    padding: 16px;
    background-color: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
}

.pro-action-btn .pro-badge {
    font-size: 9px;
}

.output-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.output-tabs {
    display: flex;
    border-bottom: 1px solid #2a2a2a;
    gap: 0;
}

.output-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888888;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 150ms ease;
}

.output-tab:hover {
    color: #d1d5db;
}

.output-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.output-panel {
    display: none;
}

.output-panel.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.code-output {
    background-color: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.code-output pre {
    margin: 0;
}

.code-output code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #e5e7eb;
}

.json-key {
    color: #3b82f6;
}

.json-string {
    color: #10b981;
}

.json-number {
    color: #f59e0b;
}

.json-boolean {
    color: #a855f7;
}

.json-null {
    color: #888888;
}

.json-bracket {
    color: #666666;
}

.output-actions {
    display: flex;
    gap: 12px;
}

.preview-output {
    min-height: 100px;
}

.preview-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    max-width: 600px;
}

.preview-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.preview-card-body {
    padding: 16px 20px;
}

.preview-card-footer {
    padding: 12px 20px;
    border-top: 1px solid #2a2a2a;
    font-size: 12px;
    color: #888888;
}

.preview-site-url {
    font-size: 13px;
    color: #9aa0a6;
    margin-bottom: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.preview-title {
    font-size: 18px;
    font-weight: 400;
    color: #8ab4f8;
    margin-bottom: 4px;
    line-height: 1.3;
}

.preview-description {
    font-size: 14px;
    color: #bdc1c6;
    line-height: 1.5;
}

.faq-item {
    border-bottom: 1px solid #2a2a2a;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 150ms ease;
}

.faq-question:hover {
    background-color: #242424;
}

.faq-question .faq-arrow {
    font-size: 12px;
    color: #888888;
    transition: transform 150ms ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.expanded .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 14px;
    font-size: 13px;
    color: #9aa0a6;
    line-height: 1.6;
    display: none;
}

.faq-item.expanded .faq-answer {
    display: block;
}

.preview-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.preview-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}

.preview-rating-text {
    font-size: 13px;
    color: #9aa0a6;
}

.preview-price {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.preview-availability {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
}

.preview-availability.in-stock {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.preview-availability.out-of-stock {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.preview-availability.pre-order {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.preview-article {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
}

.preview-article-image {
    width: 100px;
    height: 100px;
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666666;
    overflow: hidden;
}

.preview-article-info {
    flex: 1;
    min-width: 0;
}

.preview-article-headline {
    font-size: 16px;
    font-weight: 400;
    color: #8ab4f8;
    margin-bottom: 6px;
    line-height: 1.3;
}

.preview-article-meta {
    font-size: 12px;
    color: #9aa0a6;
    line-height: 1.5;
}

.preview-business-name {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.preview-business-type {
    font-size: 13px;
    color: #9aa0a6;
    margin-bottom: 12px;
}

.preview-business-address {
    font-size: 13px;
    color: #bdc1c6;
    line-height: 1.5;
    margin-bottom: 12px;
}

.preview-business-detail {
    font-size: 13px;
    color: #bdc1c6;
    margin-bottom: 4px;
}

.preview-business-detail span {
    color: #888888;
    margin-right: 8px;
}

.preview-hours-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    margin-top: 8px;
}

.preview-hours-row {
    display: flex;
    gap: 16px;
}

.preview-hours-day {
    color: #bdc1c6;
    font-weight: 500;
}

.preview-hours-time {
    color: #9aa0a6;
}

.preview-event-date {
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    margin-bottom: 4px;
}

.preview-event-location {
    font-size: 13px;
    color: #9aa0a6;
    margin-bottom: 8px;
}

.preview-event-price {
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}

.preview-step {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
}

.preview-step:last-child {
    border-bottom: none;
}

.preview-step-number {
    width: 24px;
    height: 24px;
    background-color: #3b82f6;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preview-step-text {
    font-size: 13px;
    color: #bdc1c6;
    line-height: 1.5;
    padding-top: 2px;
}

.preview-recipe-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.preview-recipe-meta-item {
    font-size: 12px;
    color: #9aa0a6;
}

.preview-recipe-meta-item strong {
    color: #bdc1c6;
}

.validation-output {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.validation-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.validation-item.validation-ok {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.validation-item.validation-warning {
    background-color: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.validation-item.validation-error {
    background-color: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.validation-item.validation-info {
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.validation-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    min-width: 36px;
}

.validation-message {
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #888888;
    font-size: 14px;
}

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.pro-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.pro-cta-text {
    font-size: 14px;
    color: #d1d5db;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay.modal-hidden {
    display: none;
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 0;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.modal-feature-label {
    font-size: 15px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.pro-features-list {
    margin-bottom: 24px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: #e5e7eb;
}

.modal-cta {
    width: 100%;
    display: block;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    gap: 12px;
}

.template-item-info {
    flex: 1;
    min-width: 0;
}

.template-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.template-item-meta {
    font-size: 12px;
    color: #888888;
    margin-top: 2px;
}

.template-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.template-action-btn {
    background: none;
    border: 1px solid #2a2a2a;
    color: #888888;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.template-action-btn:hover {
    border-color: #374151;
    color: #e5e7eb;
}

.template-action-btn.delete:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.template-item.starter {
    border-color: rgba(59, 130, 246, 0.2);
}

.template-item.starter .template-item-meta {
    color: #3b82f6;
}

.template-save-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
    margin-top: 8px;
}

.batch-results-preview {
    margin-top: 16px;
}

.batch-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.batch-results-header h4 {
    font-size: 16px;
    font-weight: 500;
    color: #d1d5db;
}

.batch-results-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.batch-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #1a1a1a;
    border-radius: 4px;
    font-size: 13px;
}

.batch-result-item.valid {
    color: #10b981;
}

.batch-result-item.invalid {
    color: #ef4444;
}

.batch-export-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.copied-feedback {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #10b981;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
}

.copied-feedback.visible {
    opacity: 1;
}

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #374151;
    padding: 32px 24px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 768px) {
        padding: 32px 16px;
    }

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 32px;
    }

    .output-section {
        padding: 16px;
    }

    .type-selector {
        gap: 6px;
    }

    .type-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .output-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .output-actions {
        flex-direction: column;
    }

    .output-actions .button-primary,
    .output-actions .button-secondary {
        width: 100%;
    }

    .pro-actions {
        flex-direction: column;
    }

    .pro-action-btn {
        width: 100%;
        justify-content: center;
    }

    .code-output {
        padding: 14px;
    }

    .code-output code {
        font-size: 12px;
    }

    .preview-article {
        flex-direction: column;
    }

    .preview-article-image {
        width: 100%;
        height: 120px;
    }

        padding: 0 16px;
    }

    .pro-cta-content {
        flex-direction: column;
        gap: 10px;
    }

    .modal {
        max-width: 100%;
        max-height: 90vh;
    }

    .modal-actions {
        flex-direction: column;
    }

    .batch-export-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .type-btn {
        flex: 1 0 calc(50% - 4px);
        justify-content: center;
        text-align: center;
    }

    .preview-recipe-meta {
        flex-direction: column;
        gap: 4px;
    }

    .preview-hours-grid {
        font-size: 11px;
    }
}