/*
 * Plik: /assets/css/prop-firm-card.css
 * Wersja: 23.0 - Widget Tech Fixes.
 */

:root {
    --card-border-color: #f0f2f5;
    --card-bg-color: #ffffff;
    --card-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    --logo-bg-color: #1f2937;
    --logo-border-color: #374151;
}

/* === GŁÓWNY WRAPPER === */
.prop-card-wrapper {
    margin: 2rem auto;
    max-width: 680px;
    box-sizing: border-box;
}

/* ======================================================= */
/*   1. WARIANT "COMPACT"                                  */
/* ======================================================= */
.prop-card-compact {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    margin: 2rem auto;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    max-width: 680px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
}
.prop-card__left-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.prop-card__identity { display: flex; align-items: center; gap: 1.5rem; flex-wrap: nowrap; }
.prop-card__logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; /*background-color: var(--logo-bg-color);*/ padding: 4px; box-sizing: border-box; flex-shrink: 0; }
.prop-card__title { margin: 0!important; font-size: 1.2em; font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-card__meta-inline { display: flex; align-items: center; gap: 0.5rem; }
.meta-inline__item { display: flex; align-items: center; gap: 6px; padding: 5px 8px; background-color: #f3f4f6; border-radius: 6px; font-size: .8em; font-weight: 500; color: #4b5563; cursor: help; }
.meta-inline__icon-flag { width: 16px; height: auto; border-radius: 2px; }
.experience-meter-card__bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.em-bar { display: block; width: 4px; background-color: #d1d5db; border-radius: 2px; }
.em-bar.bar-1 { height: 40%; } .em-bar.bar-2 { height: 60%; } .em-bar.bar-3 { height: 80%; } .em-bar.bar-4 { height: 100%; }
.em-bar.is-active { background-color: #4b5563; }
.prop-card__assets-list { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-card__asset-badge { background-color: #eef2ff; color: #4338ca; padding: 3px 10px; border-radius: 15px; font-size: .75em; font-weight: 600; }
.prop-card__asset-badge.is-more { background-color: transparent; border: 1px dashed #d1d5db; color: #6b7280; }
.prop-card__right-col { display: flex; align-items: center; gap: 1.5rem; }
.prop-card__score { text-align: center; width: 50px; }
.prop-card__score-label { font-size: 0.65em; font-weight: 500; color: #6b7280; margin-top: 2px; display: block; white-space: nowrap; }
.prop-card-compact .prop-index-visual { width: 50px; height: 50px; }
.prop-card-compact .prop-index-score { font-size: 1.1em; }
.prop-card-compact .prop-index-svg circle { stroke-width: 5px; }
.prop-card__actions { display: flex; flex-direction: column; gap: 0.5rem; }
.prop-card__button { text-decoration: none !important; padding: 6px 14px; border-radius: 6px; font-weight: 600; font-size: 0.8em; text-align: center; border: 1px solid transparent; transition: all .2s ease; white-space: nowrap; }
.prop-card__button.button-primary { background-color: #10b981; color: #fff !important; }
.prop-card__button.button-primary:hover { background-color: #059669; }
.prop-card__button.button-secondary { background-color: #f3f4f6; color: #374151 !important; }
.prop-card__button.button-secondary:hover { background-color: #e5e7eb; }
@media screen and (max-width: 580px) {
    .prop-card-compact { grid-template-columns: 1fr; }
    .prop-card__left-col { gap: 1rem; }
    .prop-card__identity { flex-wrap: wrap; gap: 1rem; }
    .prop-card__meta-inline { margin-left: 0; }
    .prop-card__right-col { border-top: 1px solid var(--card-border-color); padding-top: 1rem; justify-content: space-between; }
}

/* ======================================================= */
/*   2. WARIANT "WIDGET" (SIDEBAR)                         */
/* ======================================================= */
.prop-card-wrapper.style-widget { 
    background-color: #f8f9fa; 
    border-radius: 12px; 
    padding: 1.5rem 1.25rem 1.25rem 1.25rem; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    gap: 1.25rem; 
    max-width: 300px; 
    transition: box-shadow 0.2s ease, border-color 0.2s ease; 
    border: 3px solid #ffcd57; 
    position: relative; 
    overflow: hidden; /* FIX: Przycinanie badge'a */
}
.prop-card-wrapper.style-widget:hover { box-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }

/* Badge dla Widgetu (Domyślny) */
.widget-badge { position: absolute; top: 0; right: 0; background-color: #ffcd57; color: #111; font-size: 0.7em; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-bottom-left-radius: 8px; z-index: 5; }

/* BOOST (Zielony) */
.prop-card-wrapper.style-widget.type-boost { border-color: #10b981; }
.prop-card-wrapper.style-widget.type-boost:hover { box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
.prop-card-wrapper.style-widget.type-boost .widget-badge { background-color: #10b981; color: #fff; }

/* TECH (Złoty + Ciemne Tło) */
.prop-card-wrapper.style-widget.type-tech { 
    background-color: #0B0F19 !important; 
    border: 3px solid #F59E0B; /* FIX: Stała złota ramka */
}
.prop-card-wrapper.style-widget.type-tech:hover { 
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); 
}
.prop-card-wrapper.style-widget.type-tech .widget-badge { 
    background-color: #F59E0B; 
    color: #0B0F19; 
    /* Dostosowane dla sidebar, aby wyglądało jak na dużej karcie */
    font-weight: 800;
}
.prop-card-wrapper.style-widget.type-tech .widget-title {
    color: #fff;
    position: relative; z-index: 2;
}
.widget-description {
    font-size: 0.9em;
    color: #94A3B8;
    margin: -0.5rem 0 0.5rem 0;
    line-height: 1.4;
    position: relative; z-index: 2;
}

.style-widget .widget-identity { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-decoration: none; margin-top: 0.5rem; position: relative; z-index: 2; }
.style-widget .widget-logo { width: 60px; height: 60px; object-fit: contain; border-radius: 12px; /*background-color: var(--logo-bg-color);*/ padding: 6px; }
.style-widget .widget-title { font-size: 1.1em; font-weight: 700; color: #111827; margin: 0; }
.style-widget .widget-score { width: 100%; border-top: 1px solid var(--card-border-color); border-bottom: 1px solid var(--card-border-color); padding: 1rem 0; }
.style-widget .widget-score .prop-card__score-label { display: block; font-size: 0.7em; font-weight: 500; color: #6b7280; margin-top: 4px; }
.style-widget .widget-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; width: 100%; position: relative; z-index: 2; }
.style-widget .widget-actions.single-action { grid-template-columns: 1fr; }
.style-widget .prop-card__button { font-size: 0.8em; padding: 6px 10px; }
.prop-card-wrapper.style-widget.type-boost .widget-actions.single-action .prop-card__button.button-secondary { background-color: #10b981; color: #fff !important; border-color: #10b981; }
.prop-card-wrapper.style-widget.type-boost .widget-actions.single-action .prop-card__button.button-secondary:hover { background-color: #059669; }

/* Buttons dla Tech (Złote) */
.prop-card-wrapper.style-widget.type-tech .prop-card__button.button-secondary {
    background: transparent;
    color: #F59E0B !important;
    border: 1px solid #F59E0B;
}
.prop-card-wrapper.style-widget.type-tech .prop-card__button.button-secondary:hover {
    background: rgba(245, 158, 11, 0.1);
}
.prop-card-wrapper.style-widget.type-tech .featured-logo {
    background-color: #1F2937; /* Ciemne tło pod logo */
    border: 1px solid #374151;
}

/* ======================================================= */
/*   3. WARIANT "FEATURED"                                 */
/* ======================================================= */
.prop-card-wrapper.style-featured { max-width: 100%; background: #ffffff; border: 1px solid #e9ecef; border-radius: 16px; padding: 2rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; box-shadow: 0 8px 25px rgba(0,0,0,0.07); transition: transform 0.2s ease, box-shadow 0.2s ease; position: relative; overflow: hidden; }
.prop-card-wrapper.style-featured:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.style-featured .featured-badge { position: absolute; top: 32px; right: -39px; background-color: #ffd700; color: #111; font-size: 0.8em; font-weight: 700; padding: 6px 28px 6px 46px; transform: rotate(45deg); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); z-index: 10; }
.style-featured.type-boost .featured-badge { background-color: #10b981; color: #fff; }
.style-featured.type-boost .prop-card__button.button-secondary { background-color: #10b981; color: #fff !important; border-color: #10b981; }
.style-featured.type-boost .prop-card__button.button-secondary:hover { background-color: #059669; }
.style-featured .featured-left-col { display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 2; /* Content nad tłem */ }
.style-featured .featured-identity { display: flex; align-items: center; gap: 1rem; }
.style-featured .featured-logo { width: 50px; height: 50px; object-fit: contain; border-radius: 8px; /*background-color: var(--logo-bg-color);*/ padding: 5px; flex-shrink: 0; }
.style-featured .featured-title { font-size: 1.6em; font-weight: 700; color: #111827; margin: 0; line-height: 1.2; }
.style-featured .featured-body p { font-size: 1.05em; color: #4b5563; margin: 0 0 1rem 0; }
.style-featured .featured-key-points { list-style: none; padding: 0; margin: 0 0 1.5rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.style-featured .featured-key-points li { font-size: 0.95em; font-weight: 500; color: #374151; display: flex; align-items: center; gap: 10px; }
.style-featured .featured-key-points li::before { content: ''; display: block; flex-shrink: 0; width: 20px; height: 20px; background-image: var(--icon-url, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E")); background-size: contain; }
.style-featured .featured-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-start; }
.style-featured .prop-card__button { padding: 10px 20px; font-size: 0.9em; }
.style-featured .featured-right-col { text-align: center; }
.style-featured .prop-index-visual-single { position: relative; width: 120px; height: 120px; margin: 0 auto; display: block; }
.style-featured .prop-index-circle-single { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 2; }
.style-featured .prop-index-score-single { font-size: 2.2em; font-weight: 700; color: var(--progress-color); }
.style-featured .prop-index-svg-single { transform: rotate(-90deg); }
.style-featured .featured-score-caption { margin-top: 0.75rem; }
.style-featured .featured-score-title { font-size: 1em; font-weight: 700; color: #374151; }
.style-featured .featured-score-desc { font-size: 0.8em; color: #6b7280; }
.prop-index-link-wrapper { text-decoration: none !important; color: inherit !important; display: block; transition: transform 0.2s ease; }
.prop-index-link-wrapper:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .prop-card-wrapper.style-featured { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
    .style-featured .featured-left-col, .style-featured .featured-identity { align-items: center; text-align: center; }
    .style-featured .featured-identity { flex-direction: column; }
    .style-featured .featured-key-points { align-items: flex-start; text-align: left; max-width: 300px; margin-left: auto; margin-right: auto; }
    .style-featured .featured-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; padding-left: 0; }
    .style-featured .featured-right-col { display: flex; flex-direction: column; align-items: center; }
}

/* ======================================================= */
/*   4. WARIANT "TECH" (DARK MODE + GOLD ACCENTS + IMG BG) */
/* ======================================================= */

.prop-card-wrapper.type-tech {
    background-color: #0B0F19 !important; /* Bardzo ciemny granat/czarny */
    border: 1px solid #1E293B;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    color: #E2E8F0; /* Jasny szary tekst */
    position: relative; /* Ważne dla tła */
}

/* --- WARSTWA TŁA Z MASKĄ --- */
.prop-card-bg-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: top right; 
    z-index: 0; 
}

.prop-card-bg-layer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #0B0F19 45%, rgba(11, 15, 25, 0.2) 100%);
}

.prop-card-wrapper.type-tech:hover {
    border-color: #F59E0B; /* Gold border */
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15), 0 12px 30px rgba(0,0,0,0.5);
    transform: translateY(-3px);
}

.prop-card-wrapper.type-tech .featured-title,
.prop-card-wrapper.type-tech .featured-score-title {
    color: #ffffff; 
}

.prop-card-wrapper.type-tech .featured-description,
.prop-card-wrapper.type-tech .featured-score-desc,
.prop-card-wrapper.type-tech .featured-key-points li {
    color: #94A3B8; 
}

/* Badge (Partner Tech) - Solid Gold - TWOJA MODYFIKACJA */
.prop-card-wrapper.type-tech .featured-badge {
    background-color: #F59E0B;
    border: none;
    color: #0B0F19;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    padding: 6px 40px; 
    right: -46px; 
    top: 30px;
    text-align: center;
    z-index: 5; /* Nad tłem */
}

.prop-card-wrapper.type-tech .featured-key-points li::before {
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.prop-card-wrapper.type-tech .tech-verified-icon svg {
    color: #F59E0B;
}

.prop-card-wrapper.type-tech .prop-card__button.button-primary {
    background: transparent;
    border: 1px solid #F59E0B;
    color: #F59E0B !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1) inset;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85em;
    font-weight: 700;
}

.prop-card-wrapper.type-tech .prop-card__button.button-primary:hover {
    background: #F59E0B;
    color: #0B0F19 !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.prop-card-wrapper.type-tech .prop-card__button.button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #E2E8F0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.prop-card-wrapper.type-tech .prop-card__button.button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #E2E8F0;
}

.prop-card-wrapper.type-tech .featured-logo {
    background-color: #1F2937;
    border: 1px solid #374151;
}

/* Layout */
.prop-card-wrapper.type-tech {
    display: block; 
}
.prop-card-wrapper.type-tech .featured-left-col {
    width: 100%;
    align-items: flex-start; 
    text-align: left;
    position: relative; /* FIX: Zapewnia kontekst dla z-index */
    z-index: 2; /* FIX: Wymusza wyświetlanie treści nad tłem */
}
.prop-card-wrapper.type-tech .featured-identity {
    justify-content: flex-start;
    margin-bottom: 1rem;
}
.prop-card-wrapper.type-tech .featured-actions {
    justify-content: flex-start; 
    margin-top: 1.5rem;
}
.prop-card-wrapper.type-tech .featured-key-points {
    align-items: flex-start; 
}
/* === POPRAWKA ODSTĘPÓW DLA WIDGETU TECH (SIDEBAR) === */

/* 1. Zwiększamy odstępy głównego kontenera */
.prop-card-wrapper.style-widget.type-tech {
    /* Więcej miejsca w środku: Góra | Prawo | Dół | Lewo */
    padding: 2.5rem 2rem 2rem 2rem !important;
    
    /* Zwiększamy odstęp między sekcją logo/tytuł a przyciskiem */
    gap: 2rem !important; 
}

/* 2. Zwiększamy odstęp między Logo a Tytułem "Arizet" */
.prop-card-wrapper.style-widget.type-tech .widget-identity {
    gap: 1rem !important; /* Było ciasno, teraz luźniej */
    margin-top: 0.5rem !important;
}

/* 3. Opcjonalnie: Powiększamy nieco logo, żeby pasowało do większej przestrzeni */
.prop-card-wrapper.style-widget.type-tech .widget-logo {
    width: 70px !important;
    height: 70px !important;
    padding: 8px !important;
}

/* 4. Upewniamy się, że tytuł ma odpowiedni margines */
.prop-card-wrapper.style-widget.type-tech .widget-title {
    margin-bottom: 0.5rem !important;
}
/* === KONFIGURACJA TŁA DLA WIDGETU W SIDEBARZE === */

/* 1. Ustawienia kontenera tła (obrazek wchodzi tu z shortcode'u) */
.prop-card-wrapper.style-widget.type-tech .prop-card-bg-layer {
    opacity: 0.6; /* Przygaszenie obrazka (0.1 - słabo widoczny, 1.0 - w pełni widoczny) */
    z-index: 0;
}

/* 2. Maska gradientowa (żeby tekst był czytelny) */
.prop-card-wrapper.style-widget.type-tech .prop-card-bg-layer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient z góry na dół: Przezroczysty -> Ciemny */
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.1) 0%, #0B0F19 95%) !important;
}

/* 3. Zapewnienie, że tło widgetu pod spodem jest ciemne */
.prop-card-wrapper.style-widget.type-tech {
    background-color: #0B0F19 !important;
}