/* Keyword Suggestions Tool Styles */
.keyword-suggestions-tool {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.kst-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid #e1e5e9;
}

/* Header Styles */
.kst-header {
    text-align: center;
    margin-bottom: 30px;
}

.kst-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.kst-header h2 i {
    color: #3498db;
}

.kst-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Search Form Styles */
.kst-search-form {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.kst-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.kst-input:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.kst-button {
    padding: 15px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.kst-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.kst-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.kst-button.loading {
    position: relative;
    color: transparent;
}

.kst-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Results Section */
.kst-results {
    margin-top: 30px;
}

.kst-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

.kst-results-header h3 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.kst-results-header h3 i {
    color: #f39c12;
}

.kst-stats {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

/* Keywords Grid */
.kst-keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.kst-keyword-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
}

.kst-keyword-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.kst-keyword-main {
    flex: 1;
}

.kst-keyword-text {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.kst-keyword-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kst-volume,
.kst-competition,
.kst-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.kst-volume {
    color: #27ae60;
}

.kst-competition.competition-high {
    color: #e74c3c;
}

.kst-competition.competition-medium {
    color: #f39c12;
}

.kst-competition.competition-low {
    color: #27ae60;
}

.kst-trend.trend-up {
    color: #27ae60;
}

.kst-trend.trend-down {
    color: #e74c3c;
}

.kst-trend.trend-stable {
    color: #f39c12;
}

/* Keyword Actions */
.kst-keyword-actions {
    margin-left: 15px;
}

.kst-copy-btn {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #7f8c8d;
}

.kst-copy-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.kst-copy-btn.copied {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

/* Loading State */
.kst-loading {
    text-align: center;
    padding: 40px 20px;
}

.kst-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #3498db;
}

.kst-spinner i {
    font-size: 32px;
}

.kst-spinner span {
    font-size: 16px;
    font-weight: 500;
}

/* Error State */
.kst-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.kst-error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #dc2626;
    font-weight: 500;
}

.kst-error-message i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .keyword-suggestions-tool {
        padding: 15px;
    }
    
    .kst-container {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .kst-button {
        width: 100%;
        justify-content: center;
    }
    
    .kst-results-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .kst-keywords-grid {
        grid-template-columns: 1fr;
    }
    
    .kst-keyword-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .kst-keyword-actions {
        margin-left: 0;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .kst-header h2 {
        font-size: 24px;
        flex-direction: column;
        gap: 5px;
    }
    
    .kst-keyword-meta {
        flex-direction: column;
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus styles for accessibility */
.kst-input:focus,
.kst-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .kst-keyword-actions {
        display: none;
    }
    
    .kst-container {
        box-shadow: none;
        border: 1px solid #000;
    }
}