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

.tool-main {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.tool-header {
    text-align: center;
    padding: 48px 0;
    border-bottom: 1px solid #374151;
    margin-bottom: 48px;
}

.tool-header h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.tool-tagline {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #9ca3af;
    margin: 0;
}

.tool-section {
    margin-bottom: 48px;
}

.input-section {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 32px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    transition: border-color 150ms ease;
}

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

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

.form-select {
    width: 100%;
    background: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

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

.form-checkbox {
    width: 18px;
    height: 18px;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 4px;
    margin-right: 8px;
    appearance: none;
    position: relative;
    cursor: pointer;
    transition: all 150ms ease;
}

.form-checkbox:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.form-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 150ms ease;
    gap: 8px;
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
}

.btn-secondary {
    background: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
}

.btn-pro {
    color: #0a0a0a;
    font-weight: 600;
}

.btn-pro:hover {
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
    transform: translateY(-1px);
}

.btn-pro:disabled {
    background: #374151;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pro-feature {
    position: relative;
}

.pro-feature[data-pro]:not(.pro-unlocked) {
    opacity: 0.6;
}

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

.pro-option {
    color: #f59e0b;
}

.output-section {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 32px;
    min-height: 300px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #374151;
}

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

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

.loading-state {
    text-align: center;
    padding: 48px 0;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #374151;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #9ca3af;
    font-size: 15px;
    margin: 0;
}

.keywords-output {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.keyword-group {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
}

.keyword-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #f59e0b;
    margin: 0 0 12px 0;
    text-transform: capitalize;
}

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

.keyword-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 8px 12px;
    background: #141414;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 150ms ease;
    cursor: pointer;
}

.keyword-item:hover {
    border-color: #374151;
    background: #1a1a1a;
}

.keyword-text {
    flex: 1;
    font-size: 14px;
    color: #e5e7eb;
}

.keyword-intent {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-left: 8px;
}

.keyword-intent.informational {
    color: #3b82f6;
}

.keyword-intent.commercial {
    color: #059669;
}

.keyword-intent.navigational {
    color: #f59e0b;
}

.keyword-intent.transactional {
    color: #dc2626;
}

.keywords-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .tool-container {
        padding: 0 16px;
    }
    
    .tool-header {
        padding: 32px 0;
    }
    
    .tool-header h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .input-section,
    .output-section {
        padding: 24px;
    }
    
    .controls-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .output-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .keywords-output {
        grid-template-columns: 1fr;
    }