/* Coupon Ranking Blocks - Front-end Styles */
.crb-block {
    max-width: 100%;
    margin: 20px 0;
}

.crb-wrapper {
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.crb-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.crb-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.crb-ranking {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 40px;
    height: 40px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.crb-logo-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow: hidden;
    flex-shrink: 0;
}

.crb-logo-container.logo-shape-square { border-radius: 0; }
.crb-logo-container.logo-shape-circle { border-radius: 50%; }
.crb-logo-container.logo-shape-rectangle { width: 120px; height: 60px; }
.crb-logo-container.logo-shape-rounded { border-radius: 12px; }

.crb-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.crb-logo-placeholder {
    width: 100%;
    height: 100%;
    background: #ff4757;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.crb-info { flex: 1; }

.crb-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.crb-operator-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.crb-stars {
    font-size: 20px;
    letter-spacing: 2px;
}

.crb-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .crb-content { grid-template-columns: 1fr; }
    .crb-header { flex-direction: column; align-items: flex-start; }
}

.crb-offer p {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #34495e;
}

.crb-pros {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-size: 14px;
}

.crb-pros .checkmark {
    width: 20px;
    height: 20px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.crb-cta-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    min-width: 200px;
}

.crb-code-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 2px dashed #bdc3c7;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.code-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: bold;
}

.code-value {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

.code-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-copy-btn:hover { color: #2980b9; }

.crb-show-code-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    color: #3498db;
    transition: all 0.3s ease;
}

.crb-show-code-btn:hover {
    background: #3498db;
    color: white;
}

.crb-cta-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.crb-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

.crb-review-link {
    text-align: center;
    color: #3498db;
    text-decoration: underline;
    font-size: 14px;
}

.crb-review-link:hover { color: #2980b9; }

.crb-terms {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    font-size: 12px;
    color: #7f8c8d;
}

.crb-terms strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
}

.crb-terms p {
    margin: 0;
    line-height: 1.6;
}
