@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

.gsfw-wrapper {
    font-family: 'Inter', sans-serif;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 0 24px;
}

/* ── Side-by-side 50/50 layout ── */
.gsfw-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
}

.gsfw-left {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gsfw-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

/* Wheel SVG */
.gsfw-svg {
    width: 100%;
    height: auto;
    display: block;
}

.gsfw-seg {
    cursor: pointer;
    transition: opacity 0.25s, filter 0.18s;
}
.gsfw-seg:hover {
    filter: brightness(1.12) drop-shadow(0 0 6px rgba(67,189,212,0.45));
}

.gsfw-strat-disc {
    cursor: pointer;
    transition: opacity 0.25s, filter 0.18s;
}
.gsfw-strat-disc:hover {
    filter: brightness(1.18) drop-shadow(0 0 6px rgba(28,79,110,0.5));
}

/* Placeholder */
.gsfw-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 240px;
    gap: 14px;
    text-align: center;
    padding: 32px 20px;
    border: 2px dashed #c5dfe8;
    border-radius: 14px;
}
.gsfw-placeholder p {
    font-size: 13px;
    color: #8aacb8;
    line-height: 1.55;
    max-width: 200px;
    margin: 0;
}

/* Panel */
.gsfw-panel {
    background: #fff;
    border: 2px solid #1c7293;
    border-radius: 14px;
    padding: 18px 20px;
    width: 100%;
    box-sizing: border-box;
    animation: gsfw-fadein 0.2s ease;
}

@keyframes gsfw-fadein {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.gsfw-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.gsfw-panel-q {
    font-size: clamp(15px, 3vw, 19px);
    font-weight: 800;
    color: #1a4a6b;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.gsfw-learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #1c7293;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.15s;
    padding: 4px 0;
}
.gsfw-learn-more-btn:hover { opacity: 0.65; }

.gsfw-panel-sub {
    font-size: 11px;
    font-weight: 700;
    color: #1c7293;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.gsfw-items {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Sub-elements: clickable */
.gsfw-item {
    background: #e8f7fa;
    border-left: 3px solid #1c7293;
    border-radius: 6px;
    padding: 9px 12px;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.gsfw-item:hover {
    background: #cdeaf3;
    transform: translateX(3px);
}
.gsfw-item-text { flex: 1; min-width: 0; }
.gsfw-item-arrow {
    flex-shrink: 0;
    color: #1c7293;
    opacity: 0.5;
    transition: opacity 0.15s, transform 0.15s;
}
.gsfw-item:hover .gsfw-item-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Detail / back view */
.gsfw-detail {
    background: #fff;
    border: 2px solid #1c7293;
    border-radius: 14px;
    padding: 18px 20px;
    width: 100%;
    box-sizing: border-box;
    animation: gsfw-fadein 0.2s ease;
}
.gsfw-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #1c7293;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 0 12px;
    font-family: inherit;
    transition: opacity 0.15s;
}
.gsfw-detail-back:hover { opacity: 0.65; }
.gsfw-detail-name {
    font-size: clamp(15px, 3vw, 18px);
    font-weight: 800;
    color: #1a4a6b;
    margin-bottom: 8px;
    line-height: 1.2;
}
.gsfw-detail-desc {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 14px;
}
.gsfw-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #1c7293;
    text-decoration: none;
    transition: opacity 0.15s;
}
.gsfw-detail-link:hover { opacity: 0.65; }

.gsfw-item-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a3a5a;
}

.gsfw-item-desc {
    font-size: 11px;
    color: #4a6070;
    line-height: 1.5;
    margin-top: 3px;
}

/* Mobile */
@media (max-width: 640px) {
    .gsfw-layout {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .gsfw-left {
        flex: none;
        width: 100%;
        max-width: 360px;
    }
    .gsfw-right {
        width: 100%;
        min-height: unset;
    }
    .gsfw-placeholder { min-height: 100px; padding: 20px; }
}
