/**
 * OKEEI Suite - Rating Tool Styles
 * Star rating export functionality
 * Version: 2.0
 */

.rating-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 40px 20px;
}

/* Container for the stars */
.rating-container {
    display: flex;
    gap: 8px;
    padding: 24px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 20px;
}

[data-theme="light"] .rating-container {
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.rating-container:hover {
    transform: translateY(-2px);
}

/* Star styling */
.star {
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    fill: #E0E0E0;
}

.star:hover {
    transform: scale(1.15);
}

.star:active {
    transform: scale(0.9);
}

.star.filled {
    fill: #FFC107;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.star.half {
    fill: url(#half-gradient);
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

/* Control Panel */
.controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .controls {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-color: #eee;
}

.controls.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-left: 2px;
}

.btn-row {
    display: flex;
    gap: 10px;
}

.btn-rating {
    border: none;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    flex: 1;
}

.btn-rating:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
}

.btn-rating:active {
    transform: translateY(0);
}

.btn-rating.primary {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.btn-rating.primary:hover {
    background: var(--accent-hover);
}

.divider {
    height: 1px;
    background: var(--border-color);
    width: 100%;
}

.icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Status toast */
#status {
    position: fixed;
    bottom: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 100;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#status.show {
    opacity: 1;
}
