.template-rating-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fafbfc;
}

.template-rating-box h4 {
    margin: 0 0 12px;
    font-size: 16px;
}

.rating-average {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.rating-score {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.rating-count {
    color: #666;
    font-size: 13px;
}

.rating-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rating-star {
    border: 1px solid #d0d7de;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
}

.rating-star:hover {
    border-color: #667eea;
    color: #667eea;
}

.rating-message {
    margin: 10px 0 0;
    font-size: 13px;
    color: #666;
    min-height: 18px;
}

.rating-message.error {
    color: #c62828;
}

.rating-message.success {
    color: #2e7d32;
}

.hot-templates-section {
    margin-bottom: 32px;
}

.hot-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.hot-template-card {
    display: block;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.hot-template-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hot-template-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
}

.hot-template-meta {
    font-size: 13px;
    color: #666;
}

.badge-early {
    background: #fff3e0;
    color: #e65100;
}

.early-lock-box {
    padding: 20px;
    border-radius: 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    margin-bottom: 16px;
}

.early-lock-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.early-lock-box p {
    margin: 0 0 14px;
    color: #666;
    line-height: 1.6;
}

.early-lock-box a {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hot-templates-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hot-templates-grid {
        grid-template-columns: 1fr;
    }
}
