/* Entity Profile CSS */

.entity-header {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin: -20px -20px 0 -20px;
    /* Bleed to edges */
    border-radius: 0 0 20px 20px;
}

.entity-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-back {
    position: absolute;
    top: 40px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.entity-title-block h1 {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.2;
}

.entity-type-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-top: 5px;
}

.entity-content {
    padding-top: 20px;
}

.entity-rating-card {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.big-rating {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ai-summary-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.ai-summary-card h3 {
    color: var(--accent);
    margin: 0 0 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-summary-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 15px;
    font-style: italic;
}

.ai-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-tag {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.entity-details h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.entity-details p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.detail-row {
    margin-bottom: 15px;
    color: var(--text-main);
}

.btn-action-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 10px;
}