/* Bonus Voting System Styles */

:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(45deg, #ff6b6b, #ee5a52);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #495057;
    --border-color: #e9ecef;
    --background-light: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --link-color: #007cba;
    --link-hover: #005a87;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 60px 20px;
    --card-padding: 20px;
    --small-padding: 12px 15px;
    --small-gap: 8px;
    --medium-gap: 15px;
    --large-gap: 30px;
    
    /* Border Radius */
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 15px;
    --border-radius-pill: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 32px;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* See full details link styling */
.wpg-see-details-text {
    font-size: var(--font-size-xs);
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.wpg-see-details-text:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Mobile responsive - See full details on new row */
@media (max-width: 768px) {
    .wpg-see-details-link {
        margin: 10px auto;
    }
}

.bonus-voting {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--small-padding);
    margin: var(--medium-gap) 0;
    transition: all var(--transition-normal);
}

/* Bonus notes styling */
.wpg-bonus-notes {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--medium-gap);
    width: 100%;
    max-width: 100%;
    flex-basis: 100%; /* Force notes to take full width and wrap to new row */
    order: 10; /* Ensure notes appear after all other elements */
}

.wpg-bonus-notes-content {
    font-size: var(--font-size-md);
    line-height: 1.5;
    color: var(--text-light);
}

.wpg-bonus-notes-content p {
    margin: 0 0 10px 0;
}

.wpg-bonus-notes-content p:last-child {
    margin-bottom: 0;
}

.wpg-bonus-notes-content ul,
.wpg-bonus-notes-content ol {
    margin: 0 0 10px var(--card-padding);
    padding: 0;
}

.wpg-bonus-notes-content li {
    margin-bottom: 5px;
}

/* Horizontal layout for voting */
.voting-horizontal {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.voting-question-display {
    margin: 0;
    flex-shrink: 0;
}

.voting-question {
    margin: 0;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

/* Responsive layout */
@media (max-width: 768px) {
    /* Mobile bonus box layout */
    .wpg-simple-box.wpg-bonus-box {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin: 0 auto;
    }
    
    .wpg-bonus-info,
    .wpg-bonus-wager {
        text-align: center;
        padding: 8px;
        min-height: auto;
        margin: 0 auto;
        max-width: 300px;
    }
    
    .wpg-bonus-notes {
        margin: 10px auto;
        max-width: 100%; /* Full width on mobile */
        padding: 12px;
        flex-basis: 100%;
        order: 10;
    }
    
    .wpg-bonus-notes-content {
        font-size: 13px;
        text-align: left;
    }
    
    .wpg-casino-single-bonus-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 8px;
        gap: 8px;
        margin: 0 auto;
        max-width: 300px;
    }
    
    .wpg-bonus-code {
        padding: 8px;
        text-align: center;
        margin: 0 auto;
        max-width: 250px;
    }
    
    .wpg-bonus-claim {
        padding: 8px;
        text-align: center;
        margin: 0 auto;
        max-width: 250px;
    }
    
    .wpg-bonus-voting-inline {
        text-align: center;
        margin: 0 auto;
        max-width: 250px;
    }
    
    .bonus-voting.inline-compact .voting-horizontal {
        justify-content: center;
        gap: 8px;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
    }
    
    .bonus-voting.inline-compact .vote-btn-group {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .bonus-voting.inline-compact .vote-btn {
        flex: 1;
        max-width: 80px;
        min-width: 70px;
        padding: 6px 8px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .voting-horizontal {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: 0 auto;
    }
    
    .vote-btn-group {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .vote-btn {
        flex: 1;
        max-width: 80px;
        min-width: 70px;
        padding: 6px 8px;
        white-space: nowrap;
    }
    
    .voting-question {
        white-space: normal;
        text-align: center;
        margin: 0 auto;
    }
}

/* Center alignment for all components */
.wpg-bonus-info,
.wpg-bonus-wager,
.wpg-bonus-code {
    text-align: center;
}

.wpg-bonus-claim {
    text-align: center;
    align-items: center;
}

/* Voting Stats */
.voting-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.success-rate {
    text-align: center;
}

.rate-percentage {
    display: block;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.rate-percentage.high {
    color: #28a745; /* Green for high success */
}

.rate-percentage.medium {
    color: #ffc107; /* Yellow for medium success */
}

.rate-percentage.low {
    color: #dc3545; /* Red for low success */
}

.rate-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vote-counts {
    display: flex;
    gap: 15px;
    align-items: center;
}

.worked-count {
    color: #28a745;
    font-weight: 500;
}

.failed-count {
    color: #dc3545;
    font-weight: 500;
}

.worked-count i,
.failed-count i {
    margin-right: 5px;
}

.no-votes {
    color: #6c757d;
    font-style: italic;
}

/* Voting Question */
.voting-question {
    margin: 10px 0 15px 0;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

/* Voting Buttons */
.vote-btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vote-btn {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.vote-btn:hover,
.vote-btn.hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vote-btn.worked {
    color: #28a745;
    border-color: #28a745;
}

.vote-btn.worked:hover,
.vote-btn.worked.hover {
    background: #28a745;
    color: white;
}

.vote-btn.failed {
    color: #dc3545;
    border-color: #dc3545;
}

.vote-btn.failed:hover,
.vote-btn.failed.hover {
    background: #dc3545;
    color: white;
}

.vote-btn:disabled,
.vote-btn.voting {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vote-btn.voting {
    position: relative;
}

.vote-btn.voting::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* User Voted State */
.user-voted {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

.voted-message {
    margin: 0;
    color: #155724;
    font-weight: 500;
    font-size: 14px;
}

.voted-message i {
    color: #28a745;
    margin-right: 6px;
}

/* Voting Messages */
.voting-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.voting-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.voting-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .voting-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .vote-counts {
        justify-content: center;
    }
    
    .vote-btn {
        width: 100%;
        max-width: 150px;
    }
}

/* Integration with existing bonus cards */
.bonus-card .bonus-voting,
.bonus-summary-card .bonus-voting {
    margin-top: 15px;
    background: #fff;
    border: 1px solid #e9ecef;
}

.bonus-detail-card .bonus-voting {
    margin: 20px 0;
    background: #f8f9fa;
}

/* Compact version for bonus listings */
.bonus-voting.compact {
    padding: 10px;
    margin: 10px 0;
}

.bonus-voting.compact .voting-stats {
    margin-bottom: 10px;
    gap: 15px;
}

.bonus-voting.compact .rate-percentage {
    font-size: 18px;
}

.bonus-voting.compact .voting-question {
    font-size: 13px;
    margin: 8px 0 10px 0;
}

.bonus-voting.compact .vote-btn {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 70px;
}

/* Animation for success rate */
.rate-percentage {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pulse animation for new votes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.voting-stats.updated {
    animation: pulse 0.6s ease-in-out;
}

/* Vote buttons with counts */
.vote-btn.has-votes {
    font-weight: 600;
}

.vote-btn.has-votes .fa {
    margin-right: 5px;
}

/* Better spacing for vote counts in buttons */
.vote-btn span.count {
    margin-left: 3px;
    font-weight: bold;
}

/* Bonus box alignment improvements - match screenshot layout */
.wpg-simple-box.wpg-bonus-box {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping to new row */
    align-items: stretch; /* Make all sections equal height */
    justify-content: space-between;
    gap: 20px;
    min-height: 120px; /* Ensure consistent height */
}

.wpg-bonus-info,
.wpg-bonus-wager {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    padding: 15px;
    min-height: 100px; /* Ensure minimum height */
}

.wpg-casino-single-bonus-box {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: stretch;
    flex: 1;
    min-height: 100px; /* Match other sections */
}

.wpg-bonus-code {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    padding: 15px; /* Add back padding to match other sections */
    min-height: 100px; /* Ensure same minimum height */
    margin:0px;
}

.wpg-bonus-code-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    flex: 1; /* Take up all available space */
}

.wpg-bonus-code-inner .wpg-small-text {
    margin-bottom: 5px;
}

.wpg-bonus-code-inner .wpg-bonus-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wpg-bonus-claim {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: stretch;
    padding: 15px;
}

.wpg-bonus-claim .wpg-button {
    margin-bottom: 10px;
}

/* Voting placement below claim buttons - matching screenshot layout */
.wpg-bonus-voting-inline {
    margin-top: 0;
    padding: 0;
    width: 100%;
}

.wpg-bonus-voting-inline .bonus-voting {
    margin: 0;
    background: transparent;
    border: none;
    padding: 10px 0;
}

.bonus-voting-below-buttons {
    margin-top: 15px;
    padding: 0;
}

.bonus-voting-below-buttons .bonus-voting {
    margin: 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px;
}

/* Inline compact version for casino single page - matching screenshot */
.bonus-voting.inline-compact {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}

.bonus-voting.inline-compact .voting-horizontal {
    gap: 10px;
    justify-content: flex-start;
}

.bonus-voting.inline-compact .voting-question {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.bonus-voting.inline-compact .vote-btn {
    padding: 5px 12px;
    font-size: 11px;
    min-width: 60px;
    border-radius: 15px;
}

.bonus-voting.inline-compact .vote-btn.worked {
    background: #e8f5e8;
    border-color: #28a745;
    color: #28a745;
}

.bonus-voting.inline-compact .vote-btn.failed {
    background: #fde8e8;
    border-color: #dc3545;
    color: #dc3545;
}

/* Claim count tooltip styling */
.claim-count-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    cursor: help;
}

.claim-info-icon {
    color: #6c757d;
    font-size: 14px;
    transition: color 0.2s ease;
}

.claim-info-icon:hover {
    color: #495057;
}

/* Tooltip on hover */
.claim-count-tooltip::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #343a40;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Arrow for tooltip */
.claim-count-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #343a40;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

.claim-count-tooltip:hover::after,
.claim-count-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Mobile responsive tooltip */
@media (max-width: 768px) {
    .claim-count-tooltip::after {
        font-size: 11px;
        padding: 5px 8px;
        bottom: auto;
        top: 100%;
        margin-bottom: 0;
        margin-top: 5px;
    }
    
    .claim-count-tooltip::before {
        bottom: auto;
        top: 100%;
        border-top-color: transparent;
        border-bottom-color: #343a40;
        margin-top: 0;
    }
}

/* Wagering info display styling */
.wpg-bonus-wagering-info-row {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: stretch;
}

.wpg-bonus-wagering-info {
    background: #f0f8ff;
    border: 1px solid #d1e7ff;
    border-radius: 6px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 100px;
}

.wagering-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.wagering-requirements {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.wagering-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.wagering-amount {
    font-size: 14px;
    font-weight: bold;
    color: #2c5aa0;
}

.wagering-multiplier {
    font-size: 12px;
    color: #6c757d;
}

.difficulty-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.difficulty-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.difficulty-level {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Difficulty color coding */
.difficulty-very-easy {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.difficulty-easy {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.difficulty-medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.difficulty-very-hard {
    background: #d6d8db;
    color: #383d41;
    border: 1px solid #c6c8ca;
}

/* Mobile responsive wagering info */
@media (max-width: 768px) {
    .wagering-info-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wagering-requirements,
    .difficulty-indicator {
        width: 100%;
        justify-content: space-between;
    }
    
    .wpg-bonus-wagering-info {
        padding: 10px 12px;
    }
    
    .wagering-amount {
        font-size: 13px;
    }
    
    .difficulty-level {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* Categorized Bonus Layout Styles */
.wpg-categorized-bonuses {
    display: flex;
    flex-direction: column;
    gap: var(--large-gap);
}

.wpg-bonus-category-section {
    background: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.wpg-category-header {
    background: var(--background-light);
    border-bottom: 2px solid var(--border-color);
    padding: var(--medium-gap) var(--card-padding);
}

.wpg-category-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpg-category-count {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.wpg-category-bonuses {
    padding: 0;
}

/* Individual Bonus Cards */
.wpg-bonus-card {
    border-bottom: 1px solid #f1f3f4;
    padding: 20px;
    transition: background-color 0.2s ease;
}

.wpg-bonus-card:last-child {
    border-bottom: none;
}

.wpg-bonus-card:hover {
    background: #f8f9fa;
}

/* Card Header with Badges */
.wpg-bonus-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wpg-bonus-type-badge {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
}

.wpg-difficulty-badge {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid;
}

/* Main Bonus Information */
.wpg-bonus-main-info {
    margin-bottom: 15px;
}

.wpg-bonus-name {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.wpg-wagering-summary {
    font-size: 14px;
    color: #2c5aa0;
    font-weight: 500;
}

/* Actions Section */
.wpg-bonus-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.wpg-bonus-code-section {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.wpg-code-label {
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.wpg-bonus-code-display {
    font-size: 13px;
    font-weight: 600;
    color: #2c5aa0;
    background: #e3f2fd;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #bbdefb;
}

.wpg-no-code {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.wpg-claim-section {
    flex-shrink: 0;
}

.wpg-claim-compact {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wpg-claim-compact:hover {
    background: #1e3f73;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Community Section (Voting) */
.wpg-bonus-community {
    margin-bottom: 15px;
}

.compact-voting {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.compact-voting .voting-horizontal {
    gap: 8px;
}

.compact-voting .voting-question {
    font-size: 12px;
}

.compact-voting .vote-btn {
    padding: 4px 10px;
    font-size: 11px;
    min-width: 50px;
    border-radius: 12px;
}

/* Compact Notes */
.wpg-bonus-notes-compact {
    background: #fff8e1;
    border: 1px solid #ffecb3;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
}

.wpg-notes-label {
    font-weight: 600;
    color: #f57f17;
    margin-bottom: 4px;
}

.wpg-notes-content {
    color: #f57f17;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wpg-categorized-bonuses {
        gap: 20px;
    }
    
    .wpg-category-header {
        padding: 12px 15px;
    }
    
    .wpg-category-title {
        font-size: 16px;
    }
    
    .wpg-bonus-card {
        padding: 15px;
    }
    
    .wpg-bonus-name {
        font-size: 18px;
    }
    
    .wpg-bonus-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .wpg-claim-section {
        text-align: center;
    }
    
    .wpg-claim-compact {
        width: 100%;
        justify-content: center;
    }
    
    .wpg-bonus-code-section {
        justify-content: center;
    }
}

/* Categorized Layout with Original Card Design */
.wpg-categorized-bonuses-original {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wpg-bonus-category-section-original {
    margin-bottom: 20px;
}

.wpg-category-header-original {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
    margin-bottom: 0;
}

.wpg-category-title-original {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c5aa0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpg-category-count-original {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.wpg-category-bonuses-original {
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    overflow: hidden;
}

.wpg-category-bonuses-original .wpg-simple-box.wpg-bonus-box {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    margin-bottom: 0;
}

.wpg-category-bonuses-original .wpg-simple-box.wpg-bonus-box:last-child {
    border-bottom: none;
}

/* Ensure equal heights in categorized layout */
.wpg-category-bonuses-original .wpg-simple-box.wpg-bonus-box {
    align-items: stretch; /* Force equal height sections */
}

.wpg-category-bonuses-original .wpg-bonus-info,
.wpg-category-bonuses-original .wpg-bonus-wager,
.wpg-category-bonuses-original .wpg-casino-single-bonus-box {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile responsive for categorized original layout */
@media (max-width: 768px) {
    .wpg-categorized-bonuses-original {
        gap: 20px;
    }
    
    .wpg-category-header-original {
        padding: 12px 15px;
    }
    
    .wpg-category-title-original {
        font-size: 16px;
    }
}

/* Action Row Layout - Claim Button + Voting in horizontal row below notes */
.wpg-bonus-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--card-padding);
    order: 20; /* Ensure it appears at the bottom */
}

.wpg-bonus-action-row .wpg-claim-section {
    flex-shrink: 0;
}

.wpg-bonus-action-row .wpg-voting-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap:10px;
}

/* Action row voting styling */
.action-row-voting {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.action-row-voting .voting-horizontal {
    gap: 15px;
    align-items: center;
}

.action-row-voting .voting-question {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin: 0;
}

.action-row-voting .vote-btn {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 65px;
    border-radius: 6px;
}

.action-row-voting .claim-count-tooltip {
    margin-left: 10px;
}

/* Mobile responsive for action row */
@media (max-width: 768px) {
    .wpg-bonus-action-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .wpg-bonus-action-row .wpg-claim-section {
        text-align: center;
    }
    
    .wpg-bonus-action-row .wpg-voting-section {
        flex-direction: column;
    }
    
    .action-row-voting .voting-horizontal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Popular Bonus Summary Table */
.wpg-popular-bonus-summary {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--large-gap);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.wpg-summary-header {
    background: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    padding: var(--card-padding);
}

.wpg-summary-header h3 {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-light);
}

.wpg-summary-table {
    width: 100%;
}

.wpg-summary-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 100px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 15px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-items: center;
}

.wpg-summary-table-header .wpg-summary-col-code,
.wpg-summary-table-header .wpg-summary-col-visits {
    text-align: center;
}

.wpg-summary-table-body {
    background: #ffffff;
}

.wpg-summary-row {
    display: grid;
    grid-template-columns: 2fr 1fr 100px;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
    transition: background-color 0.2s ease;
}

.wpg-summary-row:hover {
    background: #f8f9fa;
}

.wpg-summary-row:last-child {
    border-bottom: none;
}

.wpg-summary-bonus-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wpg-summary-bonus-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c5aa0;
    line-height: 1.3;
}

.wpg-summary-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #28a745;
    font-weight: 500;
}

.wpg-summary-verified i {
    font-size: 14px;
}

.wpg-summary-bonus-code {
    background: #e3f2fd;
    border: 1px dashed #2196f3;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #1976d2;
    text-align: center;
    width: 100%;
}

.wpg-summary-bonus-code span {
    text-align: center;
    flex-grow: 1;
}

.wpg-summary-no-code {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

.wpg-summary-claim-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.wpg-summary-claim-count i {
    color: #6c757d;
    font-size: 16px;
}

.wpg-summary-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    text-align: center;
}

.wpg-summary-show-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.wpg-summary-show-more:hover {
    color: #1e3f73;
    text-decoration: none;
}

/* Mobile responsive for summary table */
@media (max-width: 768px) {
    .wpg-summary-table-header,
    .wpg-summary-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .wpg-summary-table-header {
        display: none; /* Hide headers on mobile for cleaner look */
    }
    
    .wpg-summary-row {
        padding: 20px;
        border-bottom: 2px solid #f1f3f4;
    }
    
    .wpg-summary-bonus-info {
        align-items: center;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .wpg-summary-bonus-code {
        margin: 10px auto;
    }
    
    .wpg-summary-claim-count {
        margin-top: 10px;
        justify-content: center;
    }
} 