/* ==========================================================================
   Cashback Component Modern Styling (Joomla 6.2)
   ========================================================================== */

.cashback-container {
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
}
.cashback-container *,
.cashback-container *::before,
.cashback-container *::after {
    box-sizing: border-box;
}

/* Category Header */
.cashback-header-block {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.cashback-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}
.cashback-header-desc {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Modern Responsive Grid (Listenansicht)
   -------------------------------------------------------------------------- */
.cashback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0 0 32px 0;
    padding: 0;
}

.cashback-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.cashback-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Card Logo Area */
.cashback-card-logo-wrap {
    height: 130px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}
.cashback-card-logo-wrap img {
    max-height: 90px;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.cashback-card:hover .cashback-card-logo-wrap img {
    transform: scale(1.05);
}

/* Card Content Area */
.cashback-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cashback-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.cashback-card-title a {
    color: #0088cc;
    text-decoration: none;
}
.cashback-card-title a:hover {
    color: #005580;
    text-decoration: underline;
}

/* Rating Bar */
.cashback-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}
.cashback-rating-label {
    color: #64748b;
    font-size: 0.82rem;
}
.cashback-stars-wrapper {
    display: inline-flex;
    align-items: center;
}
.stars-outer {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    letter-spacing: 2px;
}
.stars-outer::before {
    content: "★★★★★";
}
.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #f59e0b;
    letter-spacing: 2px;
}
.stars-inner::before {
    content: "★★★★★";
}
.stars-clickable {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
}
.stars-clickable a {
    flex: 1;
    text-align: center;
    color: transparent;
    text-decoration: none;
}
.rating-log {
    font-size: 0.8rem;
    color: #64748b;
}

/* Card Teaser */
.cashback-card-intro {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
    flex-grow: 1;
    margin-bottom: 16px;
}
.cashback-card-intro h1 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1e293b;
}
.cashback-card-intro p {
    margin: 0;
}

/* Card Actions */
.cashback-card-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: auto;
}
.btn-cb-details {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0088cc;
    border: 1px solid #0088cc;
    border-radius: 6px;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-cb-details:hover {
    background: #0088cc;
    color: #ffffff;
    text-decoration: none;
}
.btn-cb-affiliate {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    background: #10b981;
    border: 1px solid #10b981;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-cb-affiliate:hover {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Modern Detail View (Detailansicht)
   -------------------------------------------------------------------------- */
.cashback-detail-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #0088cc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.cashback-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cashback-detail-logo-box {
    width: 130px;
    height: 90px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.cashback-detail-logo-box img {
    max-height: 75px;
    max-width: 100%;
    object-fit: contain;
}
.cashback-hero-meta h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.cashback-hero-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cashback-hits-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.cashback-hero-cta .btn-hero-action {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}
.cashback-hero-cta .btn-hero-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Main Detail Content Card */
.cashback-detail-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.cashback-detail-intro {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #334155;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}
.cashback-detail-intro h1 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}
.cashback-detail-body {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #334155;
}
.cashback-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Standardized Mid-Content Provider Banner */
.cashback-banner-section {
    margin: 32px 0 20px 0;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
}
.cashback-banner-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px 0;
}
.cashback-banner-img {
    max-height: 110px;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #e2e8f0;
    padding: 8px;
    background: #ffffff;
}
.cashback-banner-link:hover .cashback-banner-img {
    transform: scale(1.03);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
.cashback-detail-body a {
    color: #0088cc;
    font-weight: 600;
}
.cashback-detail-body a:hover {
    color: #005580;
    text-decoration: underline;
}

/* Features Highlight Box */
.cashback-features-card {
    background: #f8fafc;
    border-left: 4px solid #10b981;
    border-radius: 0 8px 8px 0;
    padding: 18px 24px;
    margin: 24px 0;
}
.cashback-features-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}
.cashback-features-content {
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
}
.cashback-features-content ul,
.cashback-features-content ol {
    margin: 8px 0;
    padding-left: 20px;
}
.cashback-features-content li {
    margin-bottom: 6px;
}

/* Modern High-Conversion Action Banner */
.cashback-action-banner {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}
.cashback-action-banner h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ffffff;
}
.cashback-action-banner p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 20px 0;
}
.btn-banner-register {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.08rem;
    font-weight: 700;
    background: #f59e0b;
    color: #1e293b;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transition: all 0.2s ease;
}
.btn-banner-register:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
    color: #0f172a;
    text-decoration: none;
}

/* Tags & Meta Section */
.cashback-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}
.cashback-tags-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cashback-tags-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
}
.tag-pill {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
}
.tag-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cashback-nav-links {
    display: flex;
    gap: 16px;
}
.btn-back-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0088cc;
    text-decoration: none;
}
.btn-back-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Sidebar Module (TOP 5 BEWERTET)
   -------------------------------------------------------------------------- */
.cashback-top-module ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cashback-top-module li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
}
.cashback-top-module li:last-child {
    border-bottom: none;
}
.cashback-top-img {
    width: 50px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}
.cashback-top-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.cashback-top-info {
    flex-grow: 1;
}
.cashback-top-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0088cc;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}
.cashback-top-title:hover {
    color: #005580;
    text-decoration: underline;
}