/* Tool Hero Styles */
.tool-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.hero-text {
    flex: 1;
    min-width: 260px;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 1rem;
    margin-top: 0;
}

@media (max-width: 767px) {
    .hero-text h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }
}

/* Path Tester Section */
.path-tester-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.tester-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Path Input Section */
.path-input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.path-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.path-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.path-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    transition: all 0.2s ease;
    outline: none;
}

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

.path-input::placeholder {
    color: #9ca3af;
}

.path-test-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.path-test-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.path-test-btn:active {
    transform: translateY(0);
}

.path-test-btn .btn-icon {
    font-size: 12px;
}

/* Quick Examples Section */
.quick-examples-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.examples-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.examples-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.example-chip {
    padding: 6px 12px;
    font-size: 13px;
    color: #3b82f6;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.example-chip:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.example-chip:active {
    transform: translateY(0);
}

/* Editors Container */
.editors-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.editor-panel {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

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

.panel-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #6b7280;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-btn:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.panel-btn-icon {
    font-size: 14px;
}

.panel-btn-text {
    font-size: 13px;
}

.editor-wrapper {
    position: relative;
    min-height: 400px;
    flex: 1;
}

.ace-editor {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 0;
}

.ace-editor-readonly {
    background: #fafafa;
}

/* Query Info Section */
.query-info-section {
    margin-top: 8px;
}

.info-card {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.info-card.success {
    background: #f0fdf4;
    border-color: #86efac;
}

.info-card.error {
    background: #fef2f2;
    border-color: #fca5a5;
}

.info-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.info-message {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.info-card.success .info-message {
    color: #166534;
}

.info-card.error .info-message {
    color: #991b1b;
}

.info-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.info-detail-item {
    font-size: 13px;
    color: #4b5563;
    margin: 4px 0;
}

.info-card.success .info-detail-item {
    color: #166534;
}

.info-card.error .info-detail-item {
    color: #991b1b;
}

.info-detail-label {
    font-weight: 600;
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .editors-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .editor-wrapper {
        min-height: 350px;
    }
    
    .ace-editor {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .tester-card {
        padding: 16px;
        gap: 20px;
    }
    
    .path-input-group {
        flex-direction: column;
    }
    
    .path-test-btn {
        width: 100%;
        justify-content: center;
    }
    
    .panel-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .panel-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .editor-wrapper {
        min-height: 300px;
    }
    
    .ace-editor {
        min-height: 300px;
    }
    
    .examples-list {
        gap: 6px;
    }
    
    .example-chip {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .tester-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .path-input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .path-test-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .panel-btn-text {
        display: none;
    }
    
    .panel-btn {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }
    
    .editor-wrapper {
        min-height: 250px;
    }
    
    .ace-editor {
        min-height: 250px;
    }
}

/* ACE Editor Customization */
.ace-github {
    background: #fafafa;
}

.ace-github .ace_gutter {
    background: #fafafa;
}

.ace-github .ace_error {
    display: none;
}

.ace-xcode {
    background: #ffffff;
}

.ace-xcode .ace_gutter {
    background: #f6f7f9;
}
