/**
 * Oldies Global Router - Frontend Stylesheet (v1.0.6)
 * Market-aware single-store visibility with safe fallback behavior
 */

/* 1. Language Switcher */
.ogr-language-switcher {
    display: inline-flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.ogr-lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ogr-lang-separator {
    color: #8c8c8c;
    opacity: 0.6;
}

.ogr-lang-link {
    color: #666;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.ogr-lang-link:hover,
.ogr-lang-link:focus {
    color: #111;
    background-color: rgba(0, 0, 0, 0.06);
}

.ogr-lang-item.ogr-active .ogr-lang-current {
    color: #e65100;
    padding: 3px 6px;
    border-radius: 4px;
    background-color: rgba(230, 81, 0, 0.1);
}

/* 2. Language Suggestion Banner */
.ogr-banner-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 480px;
    width: calc(100% - 48px);
    background: #1a1a1a;
    color: #f5f5f5;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 999990;
    padding: 16px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: ogrSlideUp 0.35s ease-out;
}

@keyframes ogrSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ogr-banner-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ogr-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ogr-banner-icon {
    font-size: 20px;
    line-height: 1.2;
}

.ogr-banner-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #e0e0e0;
    font-weight: 500;
}

.ogr-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ogr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ogr-btn-primary {
    background: #e65100;
    color: #ffffff;
}

.ogr-btn-primary:hover {
    background: #f57c00;
}

.ogr-btn-secondary {
    background: transparent;
    color: #bbb;
    border-color: #444;
}

.ogr-btn-secondary:hover {
    background: #2a2a2a;
    color: #ffffff;
}

.ogr-btn-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

/* 3. Dual Store Marketplace Buttons */
.ogr-store-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 20px auto 28px;
    box-sizing: border-box;
    width: 100%;
}

.ogr-layout-stacked {
    flex-direction: column;
    align-items: center;
}

.ogr-store-card {
    flex: 1 1 360px;
    width: 100%;
    max-width: 560px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ogr-store-badge {
    display: inline-block;
    align-self: flex-start;
    background: #e65100;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    margin: 0 0 8px 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.18);
}

.ogr-store-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    color: #222222;
    border: 1px solid #e7ddd6;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    height: 100%;
    min-height: 88px;
}

.ogr-store-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.ogr-store-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    background: #fff3eb;
}

.ogr-store-btn-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ogr-store-title {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}

.ogr-store-subtext {
    font-size: 11px;
    color: #666666;
    line-height: 1.35;
}


/* v1.0.6: Hide non-preferred marketplace after country/manual resolution.
 * Base HTML still contains valid marketplace links for cache safety and JS fallback. */
.ogr-store-card.ogr-market-hidden {
    display: none !important;
}

/* Recommended Store Visual Highlight */
.ogr-store-card.ogr-primary .ogr-store-btn {
    border-color: #e65100;
    background: linear-gradient(180deg, #fffdfa 0%, #fff8f3 100%);
    box-shadow: 0 12px 28px rgba(230, 81, 0, 0.14);
}

.ogr-store-card.ogr-primary .ogr-store-title {
    color: #d84315;
}

.ogr-store-card.ogr-primary .ogr-store-badge {
    background: #e65100;
    display: inline-block !important;
}

/* Secondary Store Visual Style */
.ogr-store-card.ogr-secondary .ogr-store-btn {
    border-color: #e8e8e8;
    background: #fafafa;
    opacity: 0.92;
}

.ogr-store-card.ogr-secondary .ogr-store-badge {
    background: #757575;
    display: inline-block !important;
}

/* Manual Store Controller */
.ogr-store-manual-control {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

.ogr-manual-label {
    font-weight: 600;
}

.ogr-manual-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #444;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ogr-manual-btn:hover {
    background: #e4e4e4;
    color: #000;
}

.ogr-manual-btn.ogr-active {
    background: #333;
    color: #fff;
    border-color: #222;
    font-weight: bold;
}


@media (max-width: 680px) {
    .ogr-store-container {
        gap: 14px;
        margin: 16px auto 22px;
    }
    .ogr-store-card {
        max-width: 100%;
    }
    .ogr-store-btn {
        padding: 12px 14px;
        min-height: 76px;
        border-radius: 12px;
    }
    .ogr-store-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 20px;
    }
    .ogr-store-title {
        font-size: 14px;
    }
    .ogr-store-subtext {
        font-size: 10px;
    }
    .ogr-store-badge {
        font-size: 9px;
        padding: 4px 8px;
    }
}


/* ==========================================================================\n   v1.0.8 — Oldies Radyo visual polish only. Routing logic unchanged.\n   ========================================================================== */
.ogr-store-container {
    margin: 18px auto 26px;
}

.ogr-store-card {
    max-width: 520px;
}

.ogr-store-card.ogr-primary {
    isolation: isolate;
}

.ogr-store-card.ogr-primary::before {
    content: "";
    position: absolute;
    inset: 34px -10px -10px 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 86% 44%, rgba(101, 53, 33, 0.08) 0 8%, transparent 8.5% 13%, rgba(101, 53, 33, 0.045) 13.5% 14.5%, transparent 15%),
        radial-gradient(circle at 92% 44%, rgba(101, 53, 33, 0.035) 0 20%, transparent 20.5%),
        linear-gradient(135deg, rgba(230, 81, 0, 0.08), rgba(255,255,255,0));
    pointer-events: none;
    z-index: -1;
}

.ogr-store-badge {
    margin-left: 10px;
    font-size: 9.5px;
    letter-spacing: 0.65px;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d85722, #b83d14);
    box-shadow: 0 6px 16px rgba(184, 61, 20, 0.22);
}

.ogr-store-btn {
    position: relative;
    overflow: hidden;
    min-height: 82px;
    padding: 13px 17px;
    border-radius: 16px;
    border: 1px solid rgba(200, 152, 120, 0.38);
    background:
        linear-gradient(120deg, rgba(255,255,255,0.98), rgba(255,247,240,0.95)),
        #fffaf6;
    box-shadow: 0 10px 28px rgba(64, 39, 26, 0.09);
}

.ogr-store-btn::after {
    content: "";
    position: absolute;
    width: 112px;
    height: 112px;
    right: -28px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle,
            rgba(104, 59, 39, 0.10) 0 6%,
            transparent 6.5% 14%,
            rgba(104, 59, 39, 0.055) 14.5% 16%,
            transparent 16.5% 27%,
            rgba(104, 59, 39, 0.04) 27.5% 29%,
            transparent 29.5% 42%,
            rgba(104, 59, 39, 0.03) 42.5% 44%,
            transparent 44.5% 100%);
    pointer-events: none;
}

.ogr-store-card.ogr-primary .ogr-store-btn {
    border-color: rgba(216, 87, 34, 0.62);
    background:
        linear-gradient(120deg, rgba(255,255,255,0.99), rgba(255,242,231,0.96)),
        #fff8f1;
    box-shadow: 0 13px 30px rgba(184, 61, 20, 0.13);
}

.ogr-store-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 22px;
    background: linear-gradient(145deg, #fff2e7, #f6dfd1);
    border: 1px solid rgba(216, 87, 34, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.ogr-store-btn-content {
    position: relative;
    z-index: 1;
}

.ogr-store-title {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.1px;
}

.ogr-store-card.ogr-primary .ogr-store-title {
    color: #a93b16;
}

.ogr-store-subtext {
    font-size: 11px;
    color: #74665e;
}

.ogr-store-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(64, 39, 26, 0.12);
}

@media (max-width: 680px) {
    .ogr-store-container {
        margin: 14px auto 20px;
    }
    .ogr-store-card {
        max-width: 100%;
    }
    .ogr-store-card.ogr-primary::before {
        inset: 30px -5px -6px 10px;
    }
    .ogr-store-btn {
        min-height: 72px;
        padding: 11px 13px;
        border-radius: 14px;
    }
    .ogr-store-btn::after {
        width: 92px;
        height: 92px;
        right: -30px;
    }
    .ogr-store-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 19px;
    }
    .ogr-store-title {
        font-size: 13.5px;
    }
    .ogr-store-subtext {
        font-size: 10px;
    }
    .ogr-store-badge {
        font-size: 8.5px;
        padding: 4px 9px;
    }
}


/* ========================================================================== 
   v1.0.10 — unmistakable Oldies Radyo shop card skin.
   New physical CSS filename is used to bypass stale WP/browser/CDN cache.
   ========================================================================== */
.ogr-store-container {
    max-width: 500px;
    margin: 18px auto 28px;
}

.ogr-store-card {
    max-width: 500px;
}

.ogr-store-card.ogr-primary .ogr-store-btn {
    min-height: 92px;
    border: 1px solid rgba(197, 82, 31, .52);
    border-left: 5px solid #d85722;
    border-radius: 18px;
    background:
        linear-gradient(115deg, rgba(255,255,255,.98) 0%, rgba(255,244,232,.97) 58%, rgba(247,214,184,.72) 100%);
    box-shadow: 0 12px 30px rgba(120, 61, 30, .13);
}

.ogr-store-card.ogr-primary .ogr-store-btn::before {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 64px;
    height: 64px;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            #e36b34 0 7%,
            #f6c4a8 7.5% 12%,
            #3f2b26 12.5% 16%,
            transparent 16.5% 24%,
            rgba(63,43,38,.22) 24.5% 26%,
            transparent 26.5% 38%,
            rgba(63,43,38,.17) 38.5% 40%,
            transparent 40.5% 52%,
            rgba(63,43,38,.12) 52.5% 54%,
            transparent 54.5% 100%);
    opacity: .88;
    pointer-events: none;
}

.ogr-store-card.ogr-primary .ogr-store-btn::after {
    content: "OLDIES";
    position: absolute;
    right: 87px;
    bottom: 10px;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 2px;
    font-weight: 800;
    color: rgba(119, 66, 39, .34);
    pointer-events: none;
}

.ogr-store-card.ogr-primary .ogr-store-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, #e96832, #b94118);
    color: #fff;
    border: 0;
    box-shadow: 0 7px 16px rgba(185, 65, 24, .22);
}

.ogr-store-card.ogr-primary .ogr-store-title {
    color: #963610;
    font-size: 15.5px;
    letter-spacing: -.15px;
}

.ogr-store-card.ogr-primary .ogr-store-subtext {
    color: #75655d;
}

.ogr-store-card.ogr-primary .ogr-store-badge {
    background: linear-gradient(135deg, #e56a30, #ae3813);
    color: white;
    border-radius: 999px;
    padding: 5px 11px;
    box-shadow: 0 5px 13px rgba(174,56,19,.2);
}

@media (max-width: 680px) {
    .ogr-store-container,
    .ogr-store-card { max-width: 100%; }
    .ogr-store-card.ogr-primary .ogr-store-btn {
        min-height: 80px;
        padding-right: 78px;
    }
    .ogr-store-card.ogr-primary .ogr-store-btn::before {
        width: 50px;
        height: 50px;
        right: 16px;
    }
    .ogr-store-card.ogr-primary .ogr-store-btn::after { display:none; }
}
