/* ============================================
   WOOTRACK REVIEWS STANDALONE - iOS STYLE
============================================ */
.wt-rv {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 30px 0;
    color: #1d1d1f;
    line-height: 1.6;
}

.wt-rv * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wt-rv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.wt-rv-header {
    text-align: center;
    margin-bottom: 48px;
}

.wt-rv-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #147EFB;
    margin-bottom: 14px;
}

.wt-rv-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.wt-rv-subtitle {
    font-size: 17px;
    color: #86868b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.wt-rv-platform-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.wt-rv-platform-badge {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.wt-rv-platform-section {
    margin-bottom: 56px;
}

.wt-rv-platform-section:last-child {
    margin-bottom: 0;
}

.wt-rv-platform-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8ed;
    flex-wrap: wrap;
}

.wt-rv-platform-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
}

.wt-rv-platform-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.wt-rv-platform-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.wt-rv-platform-score {
    font-size: 22px;
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1;
}

.wt-rv-platform-stars {
    display: inline-flex;
    gap: 2px;
}

.wt-rv-platform-stars svg {
    width: 16px;
    height: 16px;
}

.wt-rv-platform-count {
    font-size: 14px;
    color: #86868b;
}

.wt-rv-platform-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wt-rv-platform-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    border: 2px solid #e8e8ed;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
    text-align: center;
}

.wt-rv-platform-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wt-rv-platform-opt img {
    height: 28px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.wt-rv-platform-opt span {
    font-size: 13px;
    font-weight: 600;
    color: #636366;
}

.wt-rv-platform-opt.is-selected,
.wt-rv-platform-opt:has(input:checked) {
    border-color: #147EFB;
    background: #f0f7ff;
    box-shadow: 0 0 0 1px rgba(20, 126, 251, 0.15);
}

.wt-rv-platform-opt.is-selected span,
.wt-rv-platform-opt:has(input:checked) span {
    color: #147EFB;
}

/* Summary */
.wt-rv-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.wt-rv-big-num {
    font-size: 56px;
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1;
    text-align: center;
}

.wt-rv-big-stars {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 8px 0;
}

.wt-rv-big-stars svg {
    width: 22px;
    height: 22px;
}

.wt-rv-big-count {
    font-size: 14px;
    color: #86868b;
    text-align: center;
}

.wt-rv-divider {
    width: 1px;
    height: 70px;
    background: #e8e8ed;
}

.wt-rv-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #147EFB, #0b5fcc) !important;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(20, 126, 251, 0.3);
    font-family: inherit;
}

.wt-rv-write-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 126, 251, 0.4);
}

.wt-rv-write-btn svg {
    width: 18px;
    height: 18px;
}

.wt-rv-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wt-rv-write-note {
    font-size: 13px;
    color: #86868b;
    margin-top: 8px;
    text-align: center;
    max-width: 260px;
}

/* Grid */
.wt-rv-grid {
    display: grid;
    grid-template-columns: repeat(var(--wt-rv-columns, 3), 1fr);
    gap: 24px;
}

/* Card */
.wt-rv-card {
    background: #f5f5f7;
    border-radius: 10px;
    padding: 32px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wt-rv-card:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: #e8e8ed;
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.wt-rv-card-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 16px;
}

.wt-rv-card-stars svg {
    width: 18px;
    height: 18px;
}

.wt-rv-card-text {
    font-size: 15px;
    color: #636366;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.wt-rv-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e8e8ed;
}

.wt-rv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #147EFB, #5856D6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.wt-rv-author-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.wt-rv-author-date {
    font-size: 13px;
    color: #86868b;
}

/* Popup (mounted under body via JS so theme transform/filter does not break position:fixed) */
.wt-rv-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2147483645;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wt-rv-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.wt-rv-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border-radius: 16px;
    padding: 44px 36px;
    z-index: 2147483646;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.wt-rv-popup.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.wt-rv-popup-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    background: #f5f5f7;
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}

.wt-rv-popup-close:hover { background: #e8e8ed; }
.wt-rv-popup-close svg { width: 18px; height: 18px; stroke: #636366; }
.wt-rv-popup-close svg path { stroke: #636366; }

.wt-rv-popup h3 {
    font-size: 24px; font-weight: 700;
    color: #1d1d1f; margin-bottom: 6px;
}

.wt-rv-popup-sub {
    font-size: 15px; color: #86868b; margin-bottom: 28px;
}

.wt-rv-stars-sel {
    display: flex; gap: 8px;
    margin-bottom: 24px; justify-content: center;
}

.wt-rv-stars-sel .wt-rv-star {
    background: none; border: none;
    cursor: pointer; padding: 4px;
    transition: transform 0.15s ease;
}

.wt-rv-stars-sel .wt-rv-star:hover { transform: scale(1.2); }

.wt-rv-stars-sel .wt-rv-star svg {
    width: 40px; height: 40px;
    color: #e8e8ed; transition: color 0.15s ease;
}

.wt-rv-stars-sel .wt-rv-star.active svg { color: #FFCC00; }

.wt-rv-field { margin-bottom: 18px; }

.wt-rv-field label {
    display: block; font-size: 14px; font-weight: 600;
    color: #1d1d1f; margin-bottom: 6px;
}

.wt-rv-field input,
.wt-rv-field textarea {
    width: 100%; padding: 14px 16px;
    border: 2px solid #e8e8ed; border-radius: 10px;
    font-size: 15px; font-family: inherit;
    color: #1d1d1f; background: #fafafa;
    outline: none; box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.wt-rv-field input:focus,
.wt-rv-field textarea:focus { border-color: #147EFB; background: #fff; }

.wt-rv-field textarea { min-height: 120px; resize: vertical; }

.wt-rv-submit {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, #147EFB, #0b5fcc) !important;
    color: #fff !important; border: none;
    border-radius: 10px; font-size: 17px; font-weight: 600;
    cursor: pointer; font-family: inherit; margin-top: 8px;
    transition: all 0.3s ease;
}

.wt-rv-submit:hover { background: linear-gradient(135deg, #0b5fcc, #094699) !important; transform: translateY(-1px); }
.wt-rv-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.wt-rv-msg {
    text-align: center; margin-top: 12px;
    font-size: 14px; font-weight: 500; display: none;
}

.wt-rv-msg.success { color: #34C759; display: block; }
.wt-rv-msg.error { color: #FF3B30; display: block; }

.wt-rv-ok { display: none; text-align: center; padding: 20px 0; }
.wt-rv-ok.active { display: block; }

.wt-rv-ok-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #34C759, #28a745);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

.wt-rv-ok-icon svg { width: 36px; height: 36px; color: #fff; }

.wt-rv-ok h4 {
    font-size: 22px; font-weight: 700;
    color: #1d1d1f; margin-bottom: 8px;
}

.wt-rv-ok p { font-size: 15px; color: #86868b; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
    .wt-rv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .wt-rv { padding: 30px 0; }
    .wt-rv-platform-badges { gap: 16px; margin-top: 18px; }
    .wt-rv-platform-badge { height: 30px; }
    .wt-rv-platform-section { margin-bottom: 40px; }
    .wt-rv-platform-head { gap: 14px; margin-bottom: 20px; padding-bottom: 16px; }
    .wt-rv-platform-logo { height: 36px; }
    .wt-rv-platform-title { font-size: 17px; }
    .wt-rv-platform-pick { grid-template-columns: 1fr; }
    .wt-rv-header { margin-bottom: 24px; }
    .wt-rv-label { margin-bottom: 8px; }
    .wt-rv-title { margin-bottom: 10px; }
    .wt-rv-subtitle { font-size: 15px; line-height: 1.55; }
    .wt-rv-summary {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 28px;
    }
    .wt-rv-big-stars { margin: 6px 0; }
    .wt-rv-big-stars svg { width: 18px; height: 18px; }
    .wt-rv-grid { grid-template-columns: 1fr; gap: 14px; }
    .wt-rv-divider { display: none; }
    .wt-rv-big-num { font-size: 36px; }
    .wt-rv-card { padding: 18px; }
    .wt-rv-card-stars { margin-bottom: 12px; }
    .wt-rv-card-text { font-size: 14px; margin-bottom: 14px; line-height: 1.65; }
    .wt-rv-card-author { padding-top: 12px; gap: 10px; }
    .wt-rv-avatar { width: 40px; height: 40px; font-size: 16px; }
    .wt-rv-write-btn { padding: 12px 22px; font-size: 14px; }
    .wt-rv-write-note { margin-top: 6px; font-size: 12px; }
    .wt-rv-popup { padding: 28px 20px; width: 95%; }
    .wt-rv-stars-sel .wt-rv-star svg { width: 32px; height: 32px; }
    .wt-rv-container { padding: 0 14px; }
}

@media (max-width: 900px) and (min-width: 601px) {
    .wt-rv-summary { gap: 22px; margin-bottom: 36px; }
    .wt-rv-header { margin-bottom: 36px; }
    .wt-rv-grid { gap: 18px; }
}
