/**
 * Pro Features Stylesheet - Star Ratings, Live Q&A Boards & Forms
 * Curated HSL Color Scheme & Modern Layouts
 */

:root {
    --indexa-primary: hsl(204, 80%, 30%);
    --indexa-primary-hover: hsl(204, 80%, 25%);
    --indexa-success: hsl(134, 61%, 41%);
    --indexa-light-bg: hsl(210, 20%, 98%);
    --indexa-border: hsl(210, 14%, 90%);
    --indexa-dark-text: hsl(210, 24%, 16%);
    --indexa-gold: hsl(45, 100%, 50%);
    --indexa-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Calendar Button */
.indexa-calendar-wrapper {
    margin: 15px 0;
    text-align: right;
}
.indexa-add-to-calendar {
    background: var(--indexa-primary);
    color: #fff !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease-in-out;
}
.indexa-add-to-calendar:hover {
    background: var(--indexa-primary-hover);
}

/* Feedback & Ratings Survey Form */
.indexa-feedback-survey {
    background: #fff;
    border: 1px solid var(--indexa-border);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--indexa-card-shadow);
    margin: 30px 0;
}
.indexa-feedback-survey h3 {
    margin-top: 0;
    color: var(--indexa-dark-text);
}
.indexa-star-rating {
    display: flex;
    gap: 8px;
    font-size: 32px;
    margin: 15px 0;
    cursor: pointer;
}
.indexa-star-rating .star {
    color: #ccc;
    transition: color 0.15s ease-in-out, transform 0.1s ease;
}
.indexa-star-rating .star:hover {
    transform: scale(1.15);
}
.indexa-star-rating .star.active {
    color: var(--indexa-gold);
}
.indexa-feedback-survey textarea {
    width: 100%;
    border: 1px solid var(--indexa-border);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    font-family: inherit;
}
.indexa-feedback-survey .success-msg {
    color: var(--indexa-success);
    font-weight: 600;
}
.indexa-feedback-survey .error-msg {
    color: #dc3232;
}

/* Live Q&A Message Board */
.indexa-qa-wrapper {
    background: #fff;
    border: 1px solid var(--indexa-border);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: var(--indexa-card-shadow);
}
.indexa-qa-wrapper h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--indexa-primary);
    padding-bottom: 8px;
}
.indexa-qa-form {
    margin-bottom: 25px;
    background: var(--indexa-light-bg);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--indexa-border);
}
.indexa-qa-form textarea {
    width: 100%;
    border: 1px solid var(--indexa-border);
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    resize: vertical;
}
.indexa-qa-form-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}
.indexa-qa-form-meta input {
    border: 1px solid var(--indexa-border);
    border-radius: 6px;
    padding: 8px 12px;
}
.indexa-qa-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}
.qa-item {
    border-bottom: 1px solid var(--indexa-border);
    padding: 15px 0;
    position: relative;
}
.qa-item:last-child {
    border-bottom: none;
}
.qa-delete-question {
    position: absolute;
    top: 10px;
    right: 0;
    background: transparent;
    color: #ff3b30;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}
.qa-header {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.qa-time {
    margin-left: 10px;
    font-size: 11px;
    color: #999;
}
.qa-question {
    font-size: 15px;
    color: var(--indexa-dark-text);
    margin-bottom: 10px;
}
.qa-answer {
    background: hsl(210, 16%, 95%);
    border-left: 3px solid var(--indexa-primary);
    padding: 10px 15px;
    margin-top: 8px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
}
.moderator-actions {
    margin-top: 10px;
    padding-left: 15px;
}
.moderator-actions textarea {
    width: 100%;
    height: 60px;
    border: 1px solid var(--indexa-border);
    border-radius: 6px;
    padding: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}
.no-questions {
    color: #888;
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}
