
:root {
    --portfeleo-primary: #2563eb;
    --portfeleo-primary-dark: #1d4ed8;
    --portfeleo-success: #16a34a;
    --portfeleo-danger: #dc2626;
    --portfeleo-bg: #f8fafc;
    --portfeleo-card-bg: #ffffff;
    --portfeleo-border: #e2e8f0;
    --portfeleo-text: #1e293b;
    --portfeleo-text-muted: #64748b;
    --portfeleo-radius: 12px;
    --portfeleo-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.portfeleo-container { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }

/* Product Grid */
.portfeleo-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.portfeleo-card { background: var(--portfeleo-card-bg); border: 1px solid var(--portfeleo-border); border-radius: var(--portfeleo-radius); padding: 1.5rem; box-shadow: var(--portfeleo-shadow); transition: transform 0.2s, box-shadow 0.2s; }
.portfeleo-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.portfeleo-card img { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 1rem; }
.portfeleo-card h3 { font-size: 1.125rem; margin: 0 0 0.5rem; color: var(--portfeleo-text); }
.portfeleo-card .bank-name { color: var(--portfeleo-text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; }
.portfeleo-card .meta-row { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.5rem; color: var(--portfeleo-text-muted); }
.portfeleo-card .meta-row strong { color: var(--portfeleo-text); }
.portfeleo-card .compare-checkbox { margin-top: 1rem; }
.portfeleo-card .card-rate { display: inline-block; background: var(--portfeleo-primary); color: #fff; padding: 0.25rem 0.75rem; border-radius: 20px; font-weight: 700; font-size: 0.875rem; }

/* Buttons */
.portfeleo-cta { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 600; text-align: center; transition: background 0.2s; border: none; cursor: pointer; }
.portfeleo-cta-primary { background: var(--portfeleo-primary); color: #fff; }
.portfeleo-cta-primary:hover { background: var(--portfeleo-primary-dark); }
.portfeleo-cta-small { padding: 0.5rem 1rem; font-size: 0.875rem; background: var(--portfeleo-primary); color: #fff; }
.portfeleo-add-compare { width: 100%; margin-top: 0.75rem; padding: 0.5rem; background: transparent; border: 1px solid var(--portfeleo-border); border-radius: 6px; cursor: pointer; }
.portfeleo-add-compare:hover { background: var(--portfeleo-bg); }

/* Single Product */
.portfeleo-single-product .product-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.portfeleo-single-product .product-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--portfeleo-border); }
.portfeleo-single-product .bank-logo { max-height: 60px; width: auto; border-radius: 8px; }
.portfeleo-single-product .product-title-wrap { flex: 1; }
.portfeleo-single-product .product-bank-name { margin-bottom: 0.5rem; }
.portfeleo-single-product .product-bank-name a { color: var(--portfeleo-text-muted); text-decoration: none; }
.portfeleo-single-product .product-bank-name a:hover { color: var(--portfeleo-primary); }
.portfeleo-single-product .product-rating { color: #f59e0b; font-size: 1.25rem; }
.portfeleo-single-product .product-rating .rating-value { color: var(--portfeleo-text-muted); font-size: 0.875rem; margin-left: 0.5rem; }
.portfeleo-single-product .product-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.portfeleo-single-product .pros, .portfeleo-single-product .cons { background: var(--portfeleo-card-bg); padding: 1.5rem; border-radius: var(--portfeleo-radius); border: 1px solid var(--portfeleo-border); }
.portfeleo-single-product .pros h3 { color: var(--portfeleo-success); margin-top: 0; }
.portfeleo-single-product .cons h3 { color: var(--portfeleo-danger); margin-top: 0; }
.portfeleo-single-product .pros ul { list-style: none; padding: 0; margin: 0; }
.portfeleo-single-product .pros li::before { content: "✓"; color: var(--portfeleo-success); margin-right: 0.5rem; font-weight: 700; }
.portfeleo-single-product .cons ul { list-style: none; padding: 0; margin: 0; }
.portfeleo-single-product .cons li::before { content: "✗"; color: var(--portfeleo-danger); margin-right: 0.5rem; font-weight: 700; }
.portfeleo-single-product .sticky-cta { position: sticky; top: 2rem; background: var(--portfeleo-card-bg); padding: 1.5rem; border-radius: var(--portfeleo-radius); box-shadow: var(--portfeleo-shadow); }
.portfeleo-single-product .sticky-cta .portfeleo-cta-primary { width: 100%; display: block; margin-bottom: 0.75rem; }

/* Reviews on Product Page */
.portfeleo-single-product .product-reviews { margin: 2rem 0; }
.portfeleo-single-product .product-reviews h2 { margin-bottom: 1.5rem; }
.portfeleo-single-product .review-item { background: var(--portfeleo-card-bg); border: 1px solid var(--portfeleo-border); border-radius: var(--portfeleo-radius); padding: 1.25rem; margin-bottom: 1rem; }
.portfeleo-single-product .review-item .review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.portfeleo-single-product .review-item .review-rating { color: #f59e0b; }
.portfeleo-single-product .review-item p { margin: 0; color: var(--portfeleo-text); }

/* Similar Products & Promotions Sidebar */
.portfeleo-single-product .similar-products, .portfeleo-single-product .product-promotions { margin-top: 1.5rem; padding: 1.25rem; background: var(--portfeleo-card-bg); border-radius: var(--portfeleo-radius); border: 1px solid var(--portfeleo-border); }
.portfeleo-single-product .similar-products h3, .portfeleo-single-product .product-promotions h3 { margin-top: 0; font-size: 1rem; }
.portfeleo-single-product .similar-item { margin-bottom: 0.75rem; }
.portfeleo-single-product .similar-item a { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--portfeleo-text); }
.portfeleo-single-product .similar-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.portfeleo-single-product .promo-item { margin-bottom: 0.5rem; }
.portfeleo-single-product .promo-item a { color: var(--portfeleo-primary); text-decoration: none; }
.portfeleo-single-product .promo-item a:hover { text-decoration: underline; }

/* Archive & Filters */
.portfeleo-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
.portfeleo-filters { background: var(--portfeleo-card-bg); padding: 1.5rem; border-radius: var(--portfeleo-radius); height: fit-content; }
.portfeleo-filters .filter-group { margin-bottom: 1.25rem; }
.portfeleo-filters label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.875rem; }
.portfeleo-filters select, .portfeleo-filters input { width: 100%; padding: 0.5rem; border: 1px solid var(--portfeleo-border); border-radius: 6px; }
.portfeleo-filters button { width: 100%; margin-top: 0.5rem; }

/* Ranking Table */
.portfeleo-ranking-table { width: 100%; border-collapse: collapse; background: var(--portfeleo-card-bg); border-radius: var(--portfeleo-radius); overflow: hidden; box-shadow: var(--portfeleo-shadow); }
.portfeleo-ranking-table th, .portfeleo-ranking-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--portfeleo-border); }
.portfeleo-ranking-table th { background: var(--portfeleo-bg); font-weight: 600; }
.portfeleo-ranking-table .rank { font-weight: 700; color: var(--portfeleo-primary); font-size: 1.25rem; }
.portfeleo-ranking-table img { max-height: 40px; width: auto; vertical-align: middle; margin-right: 0.5rem; }

/* Compare Table */
.portfeleo-compare-table-wrapper { overflow-x: auto; }
.portfeleo-compare-table { width: 100%; border-collapse: collapse; background: var(--portfeleo-card-bg); border-radius: var(--portfeleo-radius); box-shadow: var(--portfeleo-shadow); }
.portfeleo-compare-table th, .portfeleo-compare-table td { padding: 1rem; border: 1px solid var(--portfeleo-border); text-align: center; }
.portfeleo-compare-table th:first-child, .portfeleo-compare-table td:first-child { text-align: left; font-weight: 600; background: var(--portfeleo-bg); }
.portfeleo-compare-table .highlight-best { background: #dcfce7; color: var(--portfeleo-success); font-weight: 700; }

/* Params Table */
.portfeleo-params-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.portfeleo-params-table th, .portfeleo-params-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--portfeleo-border); text-align: left; }
.portfeleo-params-table th { width: 40%; color: var(--portfeleo-text-muted); font-weight: 500; }

/* Search */
.portfeleo-search-box { position: relative; max-width: 600px; margin: 0 auto 2rem; }
.portfeleo-search-box input { width: 100%; padding: 1rem 1.25rem; border: 2px solid var(--portfeleo-border); border-radius: var(--portfeleo-radius); font-size: 1rem; }
.portfeleo-search-box input:focus { outline: none; border-color: var(--portfeleo-primary); }
.portfeleo-search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--portfeleo-border); border-radius: 8px; margin-top: 0.5rem; box-shadow: var(--portfeleo-shadow); z-index: 100; }
.portfeleo-search-dropdown .search-item { display: block; padding: 0.75rem 1rem; color: var(--portfeleo-text); text-decoration: none; border-bottom: 1px solid var(--portfeleo-border); }
.portfeleo-search-dropdown .search-item:hover { background: var(--portfeleo-bg); }

/* Calculator */
.portfeleo-calculator { background: var(--portfeleo-card-bg); padding: 1.5rem; border-radius: var(--portfeleo-radius); box-shadow: var(--portfeleo-shadow); max-width: 400px; }
.portfeleo-calculator label { display: block; margin-bottom: 1rem; font-weight: 600; }
.portfeleo-calculator input { width: 100%; padding: 0.5rem; margin-top: 0.25rem; border: 1px solid var(--portfeleo-border); border-radius: 6px; }
.portfeleo-calculator .calc-btn { background: var(--portfeleo-primary); color: #fff; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
.portfeleo-calculator .calc-result { margin-top: 1rem; font-size: 1.125rem; font-weight: 700; }

/* FAQ */
.portfeleo-faq details { background: var(--portfeleo-card-bg); border: 1px solid var(--portfeleo-border); border-radius: 8px; margin-bottom: 0.75rem; padding: 1rem; }
.portfeleo-faq summary { font-weight: 600; cursor: pointer; }
.portfeleo-faq details[open] summary { margin-bottom: 0.5rem; }

/* Compare Widget */
.portfeleo-compare-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; }
.portfeleo-compare-widget #portfeleo-compare-btn { background: var(--portfeleo-primary); color: #fff; padding: 1rem 1.5rem; border-radius: 50px; border: none; box-shadow: var(--portfeleo-shadow); cursor: pointer; font-weight: 600; }
.portfeleo-compare-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.portfeleo-compare-modal-content { background: #fff; padding: 2rem; border-radius: var(--portfeleo-radius); max-width: 90vw; max-height: 90vh; overflow: auto; }

/* Pagination */
.portfeleo-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.portfeleo-pagination button { padding: 0.5rem 1rem; border: 1px solid var(--portfeleo-border); background: #fff; border-radius: 6px; cursor: pointer; }
.portfeleo-pagination button.active { background: var(--portfeleo-primary); color: #fff; border-color: var(--portfeleo-primary); }

/* Bank Page - zabezpieczone przed Bootstrap */
.portfeleo-single-bank .bank-header {
    display: block !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
    padding: 2rem !important;
    background: var(--portfeleo-card-bg) !important;
    border: 1px solid var(--portfeleo-border) !important;
    border-radius: var(--portfeleo-radius) !important;
    box-shadow: var(--portfeleo-shadow) !important;
    box-sizing: border-box !important;
}
.portfeleo-single-bank .bank-header-inner {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
}
.portfeleo-single-bank .bank-logo-wrap {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}
.portfeleo-single-bank .bank-logo-wrap img,
.portfeleo-single-bank .bank-logo-img {
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px !important;
    display: block !important;
    object-fit: contain !important;
}
.portfeleo-single-bank .bank-title-wrap {
    flex: 1 1 auto !important;
    min-width: 200px !important;
}
.portfeleo-single-bank .bank-title {
    margin: 0 0 0.25rem 0 !important;
    font-size: 2rem !important;
    line-height: 1.2 !important;
    color: var(--portfeleo-text) !important;
}
.portfeleo-single-bank .bank-slogan {
    margin: 0 !important;
    color: var(--portfeleo-text-muted) !important;
    font-size: 1rem !important;
}
.portfeleo-single-bank .bank-content {
    margin-bottom: 2.5rem !important;
    padding: 1.5rem !important;
    background: var(--portfeleo-card-bg) !important;
    border: 1px solid var(--portfeleo-border) !important;
    border-radius: var(--portfeleo-radius) !important;
    box-shadow: var(--portfeleo-shadow) !important;
    box-sizing: border-box !important;
}
.portfeleo-single-bank .bank-content p {
    margin-bottom: 1rem !important;
    line-height: 1.7 !important;
}
.portfeleo-single-bank .bank-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}
.portfeleo-single-bank .bank-section {
    margin-bottom: 2.5rem !important;
    display: block !important;
    width: 100% !important;
}
.portfeleo-single-bank .bank-section h2 {
    margin-bottom: 1.5rem !important;
    font-size: 1.5rem !important;
    color: var(--portfeleo-text) !important;
}
.portfeleo-single-bank .promo-list {
    display: grid !important;
    gap: 1rem !important;
    grid-template-columns: 1fr !important;
}
.portfeleo-single-bank .promo-item {
    background: var(--portfeleo-card-bg) !important;
    padding: 1rem 1.5rem !important;
    border-radius: var(--portfeleo-radius) !important;
    border: 1px solid var(--portfeleo-border) !important;
    box-shadow: var(--portfeleo-shadow) !important;
}
.portfeleo-single-bank .promo-item a {
    color: var(--portfeleo-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
.portfeleo-single-bank .reviews-list {
    display: block !important;
    width: 100% !important;
}
.portfeleo-single-bank .review-item {
    background: var(--portfeleo-card-bg) !important;
    border: 1px solid var(--portfeleo-border) !important;
    border-radius: var(--portfeleo-radius) !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    box-shadow: var(--portfeleo-shadow) !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.portfeleo-single-bank .review-item .review-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.75rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}
.portfeleo-single-bank .review-item .review-rating {
    color: #f59e0b !important;
    font-size: 1.125rem !important;
}
.portfeleo-single-bank .review-item p {
    margin: 0 !important;
    line-height: 1.6 !important;
    color: var(--portfeleo-text) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .portfeleo-layout { grid-template-columns: 1fr; }
    .portfeleo-single-product .product-grid { grid-template-columns: 1fr; }
    .portfeleo-single-product .product-pros-cons { grid-template-columns: 1fr; }
    .portfeleo-single-bank .bank-header { flex-direction: column; text-align: center; }
    .portfeleo-product-grid { grid-template-columns: 1fr; }
    .portfeleo-compare-widget { bottom: 1rem; right: 1rem; }
}
