/* 
 * Casino Review Pro - Premium Styling (v15)
 * Restore Modern Design with Sidebar-Under-Toggle Layout.
 */

:root {
    --crp-primary: #5a189a;
    --crp-primary-hover: #480ca8;
    --crp-secondary: #ff9100;
    --crp-text: #334155;
    --crp-dark: #0f172a;
    --crp-bg: #f8fafc;
    --crp-white: #ffffff;
    --crp-border: #e2e8f0;
    --crp-success: #22c55e;
    --crp-danger: #ef4444;
    --crp-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Layout Structure (Sidebar Under Toggle) --- */
.crp-filter-container {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
    padding: 0 20px;
}

/* Mobile & Desktop Toggle */
.crp-mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--crp-dark);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    border: 1px solid var(--crp-border);
    margin-bottom: 15px;
    width: fit-content;
    transition: all 0.2s;
}

.crp-mobile-filter-toggle:hover {
    background: #f1f5f9;
}

/* Sidebar positioned under the toggle */
.crp-filter-sidebar {
    display: none; /* Hidden by default, toggled via JS */
    background: var(--crp-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--crp-shadow);
    border: 1px solid var(--crp-border);
    margin-bottom: 30px;
    width: 100%; /* Full width when shown */
}

.crp-filter-sidebar.active {
    display: block;
}

.crp-filter-sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--crp-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
}

.crp-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.crp-filter-group { margin-bottom: 15px; }
.crp-filter-group h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.crp-filter-list { max-height: 150px; overflow-y: auto; }
.crp-filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--crp-text);
    font-weight: 500;
}

.crp-filter-item input { margin-right: 10px; accent-color: var(--crp-primary); }

/* --- Results Area (Full Width) --- */
.crp-filter-results {
    width: 100%;
}

.crp-filter-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--crp-white);
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--crp-shadow);
    border: 1px solid var(--crp-border);
}

/* --- Premium Casino List Cards --- */
.gcr-list-item {
    display: grid;
    grid-template-columns: 80px 160px 1fr 220px;
    gap: 25px;
    align-items: center;
    background: var(--crp-white);
    border-radius: 15px;
    margin-bottom: 25px;
    padding: 30px;
    box-shadow: var(--crp-shadow);
    position: relative;
    border: 1px solid var(--crp-border);
    transition: transform 0.2s ease;
}

.gcr-list-item:hover {
    transform: translateY(-5px);
}

.gcr-number-box {
    width: 40px;
    height: 40px;
    background: var(--crp-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(90, 24, 154, 0.3);
}

.gcr-list-logo img {
    max-width: 140px;
    height: auto;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

.gcr-list-details h3 {
    margin: 0 0 10px 0;
    font-size: 26px;
    color: var(--crp-dark);
    font-weight: 900;
}

.gcr-rating { color: #f59e0b; font-size: 20px; margin-bottom: 12px; }
.gcr-bonus-info { font-weight: 800; font-size: 20px; color: var(--crp-primary); margin-bottom: 10px; }

.gcr-list-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 30px;
    border-left: 1px solid var(--crp-border);
}

.gcr-button {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}

.gcr-play-now { background: var(--crp-secondary); color: white; box-shadow: 0 4px 10px rgba(255, 145, 0, 0.2); }
.gcr-play-now:hover { background: #ff7b00; transform: scale(1.03); }
.gcr-review { background: #f1f5f9; color: var(--crp-dark); }
.gcr-review:hover { background: #e2e8f0; }

/* --- Restored Coupon Style Bonus Code Box --- */
.gcr-bonus-code-wrapper.gcr-coupon-style {
    width: 100%;
    margin-top: 5px;
}

.gcr-bonus-code-box {
    border: 2px dashed var(--crp-primary);
    background: #fdfaff;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.gcr-bonus-code-box:hover {
    background: #f5eeff;
    border-color: var(--crp-primary-hover);
}

.gcr-bonus-code-text {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 800;
    color: var(--crp-primary);
    font-size: 14px;
    letter-spacing: 1px;
}

.gcr-copy-trigger {
    font-size: 11px;
    background: var(--crp-primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
}

.gcr-bonus-code-box.copied {
    border-color: var(--crp-success);
    background: #f0fff4;
}

.gcr-bonus-code-box.copied .gcr-copy-trigger {
    background: var(--crp-success);
}

/* --- T&C Tooltip (Fixed) --- */
.gcr-terms-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.gcr-terms-toggle {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: underline;
    cursor: help;
    font-weight: 600;
}

.gcr-terms-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 300px;
    background: #1e293b;
    color: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-bottom: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.gcr-terms-wrapper:hover .gcr-terms-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* --- Mobile Adjustments --- */
@media (max-width: 992px) {
    .gcr-list-item { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding: 30px; 
    }
    .gcr-number-box { position: absolute; top: 20px; left: 20px; }
    .gcr-list-logo, .gcr-list-details, .gcr-list-buttons { grid-column: 1; width: 100%; border: none; padding: 0; }
    .gcr-list-buttons { border-top: 1px solid var(--crp-border); padding-top: 25px; }
    .gcr-terms-tooltip { width: 260px; }
}
