/* MeSosyal 360 TopBar Pro - Frontend Styles */
.ms360-topbar-wrap,
.ms360-topbar-wrap * {
    box-sizing: border-box;
}

.ms360-topbar-wrap {
    width: 100%;
    max-width: 100%;
    background: var(--ms360-bg, #26301f);
    color: var(--ms360-text, #ffffff);
    font-family: var(--ms360-font, inherit);
    font-size: var(--ms360-fs-desktop, 13px);
    font-weight: var(--ms360-fw, 500);
    letter-spacing: var(--ms360-ls, 0px);
    line-height: 1.3;
    position: relative;
    z-index: var(--ms360-z, 20);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.ms360-topbar-wrap.is-sticky {
    position: sticky;
    top: 0;
}

.ms360-topbar-wrap.is-sticky.has-wp-admin-bar {
    top: 32px;
}

@media (max-width: 782px) {
    .ms360-topbar-wrap.is-sticky.has-wp-admin-bar {
        top: 46px;
    }
}

.ms360-tb-inner {
    width: 100%;
    max-width: var(--ms360-max-w, 1440px);
    min-height: var(--ms360-h-desktop, 44px);
    margin: 0 auto;
    padding: 6px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

/* Sol Alan */
.ms360-tb-left {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
    min-width: 0;
}

.ms360-tb-play-btn {
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    margin: 0 !important;
    color: var(--ms360-text, #ffffff) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: none !important;
}

.ms360-tb-play-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ms360-tb-divider {
    width: 1px;
    height: 18px;
    background: var(--ms360-divider, rgba(255,255,255,0.25));
    display: inline-block;
    flex-shrink: 0;
}

.ms360-tb-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ms360-link, #ffffff) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ms360-tb-brand-link:hover {
    color: var(--ms360-link-hover, #cfe8b8) !important;
}

.ms360-tb-logo-img {
    height: var(--ms360-logo-h, 20px);
    width: auto;
    display: block;
    object-fit: contain;
}

.ms360-tb-logo-text {
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ms360-tb-discover-text.has-underline {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.ms360-tb-arrow-right {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ms360-tb-brand-link:hover .ms360-tb-arrow-right {
    transform: translateX(3px);
}

/* Orta Alan (Slider & Geri Sayım) */
.ms360-tb-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    justify-self: center;
    min-width: 0;
}

.ms360-tb-nav {
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    margin: 0 !important;
    color: var(--ms360-text, #ffffff) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: none !important;
    flex-shrink: 0;
}

.ms360-tb-nav:hover {
    opacity: 1;
    transform: scale(1.12);
}

.ms360-tb-slides {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
}

.ms360-tb-slide {
    display: none;
    align-items: center;
    justify-content: center;
    animation: ms360FadeIn 0.35s ease;
}

.ms360-tb-slide.is-active {
    display: flex;
}

.ms360-tb-slide-link,
.ms360-tb-slide-text {
    color: var(--ms360-text, #ffffff);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.ms360-tb-slide-link:hover {
    color: var(--ms360-link-hover, #cfe8b8);
}

/* Geri Sayım Kutucukları */
.ms360-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 3px;
    vertical-align: middle;
}

.ms360-cd-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 5px;
    background: var(--ms360-timer-bg, rgba(255,255,255,0.08));
    border: 1px solid var(--ms360-timer-border, rgba(255,255,255,0.45));
    border-radius: var(--ms360-timer-radius, 6px);
    color: var(--ms360-timer-text, #ffffff);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ms360-cd-sep {
    font-weight: 700;
    opacity: 0.85;
    font-size: 0.92em;
}

/* Sağ Alan */
.ms360-tb-right {
    justify-self: end;
    min-width: 0;
}

.ms360-tb-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ms360-tb-quick-link {
    color: var(--ms360-link, #ffffff) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ms360-tb-quick-link:hover {
    color: var(--ms360-link-hover, #cfe8b8) !important;
}

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

/* Tablet & Mobil Uyumluluk */
@media (max-width: 1120px) {
    .ms360-tb-inner {
        padding: 6px 14px;
        gap: 10px;
    }
    .ms360-tb-links {
        gap: 12px;
    }
    .ms360-tb-center {
        gap: 10px;
    }
}

@media (max-width: 991px) {
    .ms360-topbar-wrap {
        font-size: var(--ms360-fs-mobile, 12px);
    }
    .ms360-tb-inner {
        min-height: var(--ms360-h-mobile, 40px);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 6px 12px;
        gap: 8px;
    }
    .ms360-tb-center {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    .ms360-tb-slides {
        flex: 1;
    }
    .ms360-cd-box {
        min-width: 22px;
        height: 21px;
        padding: 0 4px;
        font-size: 0.95em;
    }
}
