/* KI-SEO Analyzer Styles */
.kiseo-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.kiseo-info {
    background: #f0f7ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #004085;
}

.kiseo-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.kiseo-form input {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
}

.kiseo-form input:focus {
    outline: none;
    border-color: #0073aa;
}

.kiseo-form button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #0073aa;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.kiseo-form button:hover:not(:disabled) {
    background: #005a87;
}

.kiseo-form button:disabled,
.kiseo-form input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#kiseo-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.kiseo-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: kiseo-spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes kiseo-spin {
    to { transform: rotate(360deg); }
}

#kiseo-error {
    background: #fee;
    border: 1px solid #fcc;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.kiseo-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.kiseo-box h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.kiseo-box p {
    margin: 0;
    line-height: 1.6;
    color: #444;
}

.kiseo-highlight {
    border-left: 4px solid #6f42c1;
    background: linear-gradient(135deg, #f8f5ff 0%, #fff 100%);
}

.kiseo-highlight p {
    font-size: 18px;
    font-weight: 600;
    color: #2d1b4e;
    text-align: center;
    padding: 10px;
    background: #f0ebff;
    border-radius: 6px;
}

.kiseo-entity-group {
    margin-bottom: 12px;
}

.kiseo-entity-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.kiseo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kiseo-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 15px;
    background: #e9ecef;
    color: #495057;
}

.kiseo-tag.person { background: #ffeaa7; color: #6c5ce7; }
.kiseo-tag.org { background: #dfe6e9; color: #2d3436; }
.kiseo-tag.location { background: #81ecec; color: #00695c; }
.kiseo-tag.product { background: #fab1a0; color: #d63031; }
.kiseo-tag.concept { background: #a29bfe; color: #fff; }

.kiseo-score {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.kiseo-bar {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

#kiseo-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    transition: width 0.5s ease;
}

#kiseo-score-text {
    font-size: 20px;
    font-weight: 700;
    min-width: 50px;
}

.kiseo-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kiseo-box li {
    padding: 10px 12px 10px 35px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    position: relative;
}

.kiseo-box li:before {
    content: "💡";
    position: absolute;
    left: 10px;
}

@media (max-width: 600px) {
    .kiseo-form {
        flex-direction: column;
    }
    .kiseo-form button {
        width: 100%;
    }
}
