/* Search Form Component Styles
 * Extracted from index.html Phase 6
 * Styles for search tabs, form inputs, cost preview, and submit button
 */

/* Tab Navigation */
.search-tabs {
    display: flex;
    background: var(--hh-color-base-cloud);
    border-radius: var(--hh-radius-lg) var(--hh-radius-lg) 0 0;
    padding: var(--hh-space-xs);
    margin: 0;
}

.tab-button {
    flex: 1;
    padding: var(--hh-space-md) var(--hh-space-lg);
    background: transparent;
    border: none;
    border-radius: var(--hh-radius-sm);
    font-size: var(--hh-type-small-size);
    font-weight: var(--hh-type-small-weight);
    color: var(--hh-color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hh-space-sm);
}

.tab-button:hover {
    color: var(--hh-color-text-primary);
    background: var(--hh-color-base-white);
}

.tab-button.active {
    background: var(--hh-color-base-white);
    color: var(--hh-color-text-primary);
    font-weight: 500;
    box-shadow: var(--hh-shadow-sm);
}

.tab-icon {
    font-size: 16px;
}

.form-container {
    padding: 32px 40px 40px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Market Search Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hh-space-lg);
    margin-bottom: var(--hh-space-xl);
}

.form-row.single {
    grid-template-columns: 1fr;
}

select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: var(--hh-color-text-primary);
}

select:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

input[type="text"]::placeholder, input[type="number"]::placeholder {
    color: #9ca3af;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
}

input[type="url"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
}

input[type="url"]:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

input[type="url"]::placeholder {
    color: #9ca3af;
}


.cost-preview {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cost-label {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 14px;
}

.cost-amount {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.token-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.balance-label {
    font-size: 13px;
    color: #6b7280;
}

.balance-amount {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

.cost-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-icon {
    font-size: 14px;
}

.status-text {
    font-size: 12px;
    font-weight: 500;
}

.cost-status.sufficient .status-text {
    color: #16a34a;
}

.cost-status.insufficient .status-text {
    color: #dc2626;
}

.cost-status.insufficient .status-icon {
    color: #dc2626;
}

.cost-preview.insufficient {
    background: #fef2f2;
    border-color: #fca5a5;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hh-space-sm);
    width: 100%;
    padding: var(--hh-space-lg);
    background: var(--hh-color-brand-primary);
    color: var(--hh-color-text-inverse);
    border: none;
    border-radius: var(--hh-radius-lg);
    font-size: var(--hh-type-body-size);
    font-weight: var(--hh-type-h4-weight);
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: var(--hh-shadow-md);
}

.submit-btn:hover {
    background: var(--hh-color-brand-primary-600);
    transform: translateY(-1px);
    box-shadow: var(--hh-shadow-lg);
}

.submit-btn:active {
    background: var(--hh-color-brand-primary-600);
    transform: translateY(0);
}

.example {
    background: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    margin-top: 24px;
    border: 1px solid #f0f0f0;
}

.example h3 {
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    font-family: 'SF Mono', Monaco, monospace;
}
