/**
 * Seazonify Customizer Controls Styles
 * HSL Primary: 218 100% 66% (#5185FF)
 */

:root {
    --szfy-primary: hsl(218, 100%, 66%);
    --szfy-primary-light: hsl(218, 100%, 95%);
    --szfy-text: #1d2327;
    --szfy-text-muted: #646970;
    --szfy-border: #dcdcde;
    --szfy-primary-dark: #2b56cc;
    --szfy-radius: 8px;
    --szfy-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --szfy-shadow-md: 0 4px 12px rgba(81, 133, 255, 0.15);
}

.seazonify-customizer-interface {
    padding: 8px 2px;
}

.seazonify-description-area {
    margin: 10px 0 20px 0;
    padding: 0 4px;
}

.seazonify-plain-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--szfy-text-muted);
    margin: 0;
    font-weight: 400;
}

.seazonify-search-box {
    margin-bottom: 16px;
    position: relative;
}

.seazonify-search-box input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--szfy-border);
    border-radius: var(--szfy-radius);
    font-size: 13px;
    transition: all 0.2s ease;
    background: #fff;
}

.seazonify-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--szfy-text-muted);
    pointer-events: none;
    width: 16px;
    height: 16px;
    z-index: 5;
}

.seazonify-search-box input:focus {
    outline: none;
    border-color: var(--szfy-primary);
    box-shadow: 0 0 0 3px var(--szfy-primary-light);
}

.seazonify-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: #f0f0f1;
    padding: 4px;
    border-radius: var(--szfy-radius);
}

.seazonify-tab {
    flex: 1;
    padding: 8px 4px;
    background: transparent;
    border: none;
    border-radius: calc(var(--szfy-radius) - 2px);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.2s;
    color: var(--szfy-text-muted);
}

.seazonify-tab:hover {
    color: var(--szfy-text);
}

.seazonify-tab.active {
    background: #fff;
    color: var(--szfy-primary);
    box-shadow: var(--szfy-shadow-sm);
}

.seazonify-tab.has-selection {
    position: relative;
}

.seazonify-tab.has-selection::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: var(--szfy-primary);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(81, 133, 255, 0.4);
}

.seazonify-tab.active.has-selection::after {
    box-shadow: 0 0 6px rgba(81, 133, 255, 0.6);
}

.seazonify-pane {
    display: none;
}

.seazonify-pane.active {
    display: block;
}

.seazonify-effects-list {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.seazonify-effect-card {
    background: #fff;
    border: 1px solid var(--szfy-border);
    border-radius: var(--szfy-radius);
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
}

.seazonify-effect-card .card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seazonify-effect-card .card-bottom {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--szfy-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.effect-select-icon {
    margin-left: auto;
    color: var(--szfy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seazonify-effect-card:hover {
    border-color: var(--szfy-primary);
    transform: translateY(-2px);
    box-shadow: var(--szfy-shadow-md);
}

.seazonify-effect-card.selected {
    border-color: var(--szfy-primary);
    background: var(--szfy-primary-light);
}

/* Premium Mirroring: Thumbnail/Icon - Exact Workspace Size (w-10 h-10) */
.effect-visual-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #f0f0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.effect-visual-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.effect-visual-preview .effect-icon-fallback {
    font-size: 20px;
}

.effect-info {
    flex: 1;
    min-width: 0;
}

.effect-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 2px;
    color: var(--szfy-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.effect-description {
    font-size: 11px;
    color: var(--szfy-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.effect-meta {
    font-size: 11px;
    color: var(--szfy-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.effect-meta .meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.effect-meta .meta-author {
    font-weight: 500;
    color: var(--szfy-text);
}

.effect-meta .meta-right {
    display: flex;
    align-items: center;
}

.effect-info-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.info-icon {
    color: var(--szfy-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-icon:hover {
    color: var(--szfy-primary);
    background: var(--szfy-primary-light);
}

.meta-tags-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(4px);
    border: 1px solid var(--szfy-border);
    border-radius: 4px;
    padding: 4px 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    width: max-content;
    max-width: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    transition: all 0.15s ease-out;
    pointer-events: none;
}

.effect-info-wrapper:hover .meta-tags-tooltip,
.effect-info-wrapper:active .meta-tags-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.meta-tags-tooltip .tag {
    background: var(--szfy-primary);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
}

.effect-badge {
    display: none; /* Moved to checkmark icon */
}

.seazonify-effect-card.selected .effect-badge {
    opacity: 1;
    transform: scale(1);
}

.seazonify-effect-card.selected::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--szfy-primary);
}

.seazonify-loading {
    text-align: center;
    padding: 30px 10px;
    color: var(--szfy-text-muted);
}

.seazonify-loading .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--szfy-primary-light);
    border-top-color: var(--szfy-primary);
    border-radius: 50%;
    animation: szfy-spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes szfy-spin {
    to { transform: rotate(360deg); }
}

.seazonify-help {
    padding: 14px;
    background: linear-gradient(135deg, var(--szfy-primary-light), #fff);
    border: 1px solid var(--szfy-primary-light);
    border-radius: var(--szfy-radius);
    margin-top: 20px;
}

.seazonify-help p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--szfy-text);
    font-weight: 500;
}

/* Scrollbar styling */
.seazonify-effects-list::-webkit-scrollbar {
    width: 4px;
}

.seazonify-effects-list::-webkit-scrollbar-track {
    background: transparent;
}

.seazonify-effects-list::-webkit-scrollbar-thumb {
    background: #dcdcde;
    border-radius: 10px;
}

/* Rating star color */
.rating-star {
    color: #f59e0b;
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}

.meta-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--szfy-text-muted);
}

/* Load more text */
.seazonify-loading-more {
    text-align: center;
    padding: 10px;
    font-size: 11px;
    color: var(--szfy-text-muted);
}

.seazonify-no-effects {
    text-align: center;
    padding: 30px 10px;
    font-size: 13px;
    color: var(--szfy-text-muted);
}

/* Section overrides for premium feel */
#accordion-section-seazonify_section .accordion-section-title {
    padding-left: 20px !important;
    font-weight: 600 !important;
}

#accordion-section-seazonify_section .accordion-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--szfy-primary);
    border-radius: 0 2px 2px 0;
}

/* Box sizing safety net */
.seazonify-customizer-interface *,
.seazonify-customizer-interface *::before,
.seazonify-customizer-interface *::after {
    box-sizing: border-box;
}

/* Description text should not have top margin on first use */
.seazonify-description-area:first-child {
    margin-top: 4px;
}
