/**
 * King Addons - Rating Notice Styles
 */

.king-addons-rating-notice {
    padding: 20px 25px;
    border-left-color: #5c3bfe !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow: 0 1px 4px rgba(92, 59, 254, 0.08);
    position: relative;
}

.king-addons-rating-notice-inner {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.king-addons-rating-notice-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #5c3bfe 0%, #7c5cff 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(92, 59, 254, 0.3);
}

.king-addons-rating-notice-logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.king-addons-rating-notice-content {
    flex: 1;
}

.king-addons-rating-notice-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

.king-addons-rating-notice-content > p {
    margin: 0 0 18px 0;
    color: #50575e;
    font-size: 14px;
    line-height: 1.6;
}

/* Stars */
.king-addons-rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.king-addons-star {
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.king-addons-star:hover {
    transform: scale(1.2);
}

.king-addons-star.active,
.king-addons-star.hover {
    color: #fbbf24;
}

.king-addons-star.active svg,
.king-addons-star.hover svg {
    fill: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.4));
}

.king-addons-star svg {
    transition: all 0.2s ease;
}

.king-addons-rating-text {
    margin-left: 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    min-width: 80px;
}

/* Feedback form */
.king-addons-feedback-form {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 500px;
}

.king-addons-feedback-form p {
    margin: 0 0 12px 0;
    color: #475569;
    font-size: 14px;
}

.king-addons-feedback-text {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.king-addons-feedback-text:focus {
    border-color: #5c3bfe;
    box-shadow: 0 0 0 3px rgba(92, 59, 254, 0.1);
    outline: none;
}

.king-addons-feedback-text::placeholder {
    color: #94a3b8;
}

.king-addons-feedback-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.king-addons-submit-feedback {
    background: linear-gradient(135deg, #5c3bfe 0%, #7c5cff 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(92, 59, 254, 0.3) !important;
}

.king-addons-submit-feedback:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(92, 59, 254, 0.4) !important;
}

.king-addons-skip-feedback {
    border-radius: 6px !important;
}

/* Actions */
.king-addons-rating-actions {
    display: flex;
    gap: 24px;
}

.king-addons-rating-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 0;
}

.king-addons-rating-actions a:hover {
    color: #5c3bfe;
}

.king-addons-rating-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Hide actions when feedback form is shown */
.king-addons-rating-notice.show-feedback .king-addons-rating-actions {
    display: none;
}

/* Notice dismiss button */
.king-addons-rating-notice .notice-dismiss,
.king-addons-rating-notice .king-addons-notice-dismiss-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.king-addons-rating-notice .notice-dismiss:hover,
.king-addons-rating-notice .king-addons-notice-dismiss-btn:hover {
    color: #64748b;
}

.king-addons-rating-notice .notice-dismiss:before,
.king-addons-rating-notice .king-addons-notice-dismiss-btn:before {
    background: none;
    color: inherit;
    content: "\f335";
    display: block;
    font: normal 20px/20px dashicons;
    speak: never;
    height: 20px;
    text-align: center;
    width: 20px;
}

/* Animation for stars */
@keyframes king-addons-star-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.king-addons-star.pop {
    animation: king-addons-star-pop 0.3s ease;
}

/* Responsive */
@media (max-width: 782px) {
    .king-addons-rating-notice-inner {
        flex-direction: column;
        gap: 16px;
    }
    
    .king-addons-rating-notice-logo {
        width: 60px;
        height: 60px;
    }
    
    .king-addons-rating-notice-logo img {
        width: 38px;
        height: 38px;
    }
    
    .king-addons-rating-stars {
        flex-wrap: wrap;
    }
    
    .king-addons-rating-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .king-addons-feedback-form {
        max-width: 100%;
    }
}
