/*
 * Plik: assets/css/shortcode-top-firms.css
 * Wersja: 12.1 (Finalne wyrównanie - współpraca z Gutenbergiem)
 */

/* 1. Ramka dla pojedynczej kolumny */
.dashboard-column {
    background: rgba(22, 28, 44, 0.7);
    border: 1px solid;
    border-radius: 12px;
    padding: 25px;
    height: 100%; /* Ważne dla równej wysokości w Gutenberg */
    transition: all 0.2s ease-in-out;
}
.dashboard-column:hover {
    transform: translateY(-5px);
    background: rgba(30, 38, 58, 0.9);
}
.cfd-column {
    border-color: rgba(0, 123, 255, 0.4);
}
.cfd-column:hover {
    border-color: rgba(0, 123, 255, 0.7);
}
.futures-column {
    border-color: rgba(74, 222, 128, 0.4);
}
.futures-column:hover {
    border-color: rgba(74, 222, 128, 0.7);
}

/* 2. Tytuł wewnątrz kolumny */
.dashboard-title {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 20px !important;
    text-align: left;
}

/* 3. Siatka z firmami */
.firms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 15px;
}

/* 4. Element w siatce */
.firm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    padding: 5px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.firm-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.firm-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background-color: #fff;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 4px;
    flex-shrink: 0;
}
.firm-item span {
    font-size: 12px!important;
    font-weight: 500;
    color: #e2e8f0;
    transition: color 0.2s;
}
.firm-item:hover span {
    color: #fff;
}

/* 5. Donut Chart */
.prop-score-badge {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: conic-gradient(var(--score-color) var(--score-percent), rgba(0, 0, 0, 0.2) 0);
}
.prop-score-badge::before {
    content: '';
    position: absolute;
    left: 4px; top: 4px; right: 4px; bottom: 4px;
    background: #10192b;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out;
}
.dashboard-column:hover .prop-score-badge::before {
    background: #1e263a;
}
.prop-score-badge span {
    position: relative; z-index: 1;
    font-size: 14px;
    font-weight: 700;
    color: #f0fdf4;
}

/* 6. Responsywność */
@media (max-width: 1024px) {
    .firms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    /* W Gutenberg kolumny same się złamią na 1fr */
    .firms-grid {
        grid-template-columns: repeat(3, 1fr); /* Wracamy do 3, bo kolumna będzie na 100% szerokości */
    }
}
@media (max-width: 480px) {
    .firms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}