/* Topical Relevance SEO Analyzer - Unique Modern Design */

.toprel-container {
    width: 100%;
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.toprel-header h2 {
    color: #ff0000 !important;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.toprel-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.toprel-input-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    margin-bottom: 40px;
}

.toprel-input-wrapper {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.toprel-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 3px solid #fff;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.toprel-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.toprel-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

.toprel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
}

.toprel-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.toprel-button.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

.toprel-results {
    display: none;
}

.toprel-results.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.toprel-report-header {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(20, 184, 166, 0.3);
}

.toprel-report-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    background: none !important;
    color: white !important;
    padding: 0 !important;
}

.toprel-word-count {
    font-size: 1.2rem;
    opacity: 0.95;
}

.toprel-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #667eea;
}

.toprel-section h3 {
    color: #667eea !important;
    font-size: 1.6rem;
    margin-bottom: 15px;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.toprel-section-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.toprel-keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.toprel-keyword-group h4 {
    color: #764ba2;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toprel-keyword-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-unigram {
    background: #10b981;
    color: white;
}

.badge-bigram {
    background: #3b82f6;
    color: white;
}

.badge-trigram {
    background: #8b5cf6;
    color: white;
}

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

.toprel-keyword-pill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: default;
}

.toprel-keyword-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.toprel-keyword-pill.type-unigram {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toprel-keyword-pill.type-bigram {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.toprel-keyword-pill.type-trigram {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.toprel-entities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.toprel-entity-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
}

.toprel-entity-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.toprel-entity-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.toprel-entity-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.toprel-entity-table tbody tr:hover {
    background: #eef2ff;
}

.toprel-entity-name {
    font-weight: 600;
    color: #334155;
}

.toprel-entity-score {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.score-high {
    background: #10b981;
    color: white;
}

.score-medium {
    background: #f59e0b;
    color: white;
}

.score-low {
    background: #6b7280;
    color: white;
}

.toprel-schema-wrapper {
    background: #1e293b;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
}

.toprel-schema-code {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.toprel-schema-highlight {
    color: #ff0000;
    font-weight: 600;
}

.toprel-copy-button {
    margin-top: 15px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toprel-copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 184, 166, 0.4);
}

.toprel-copy-button.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.toprel-loading {
    text-align: center;
    padding: 60px 20px;
}

.toprel-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f4f6;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.toprel-loading-text {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
}

.toprel-loading-progress {
    color: #94a3b8;
    margin-top: 10px;
}

.toprel-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.toprel-error.show {
    display: block;
}

@media (max-width: 768px) {
    .toprel-header h2 {
        font-size: 2rem;
    }
    
    .toprel-input-wrapper {
        flex-direction: column;
    }
    
    .toprel-input,
    .toprel-button {
        width: 100%;
    }
    
    .toprel-keywords-grid,
    .toprel-entities-grid {
        grid-template-columns: 1fr;
    }
}
