/**
 * 🔱 RBN Core - Framework [v3.5 "RbnCore"]
 * 🏛️ ARCHITECTURE  : Sovereign Asset Engine
 * ---------------------------------------
 * 🛰️ COMPONENT     : RbnKit v1.0
 * ⚓ RESOURCE      : common.css [Core]
 * 🛡️ STATUS        : Verified & Proxied
 * ---------------------------------------
 */

/* ==========================================================================
   RBN Core Framework Common Stylesheet (RbnCommon) 🌐
   ========================================================================== */

/* --- 1. RBN Footer Bottom Bar 🌐 --- */
.rbn-footer-bottom-bar {
    background: var(--rbn-footer-bg, #0a1120);
    color: var(--rbn-footer-color, rgba(255, 255, 255, 0.4));
    border-top: 1px solid var(--rbn-footer-border, rgba(255, 255, 255, 0.05));
    padding: 24px 0;
    font-size: 0.85rem;
    width: 100%;
}

.rbn-footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.rbn-footer-divider {
    margin: 0 8px;
    opacity: 0.5;
}

.rbn-footer-sitemap-link,
.rbn-footer-powered-link {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
}

.rbn-footer-sitemap-link:hover,
.rbn-footer-powered-link:hover {
    color: var(--rbn-footer-hover, #fff);
}

.rbn-footer-powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rbn-footer-powered-opacity {
    opacity: 0.6;
}

/* --- 2. RBN Scroll To Top Button 🚀 --- */
.rbn-scroll-to-top,
.rbn-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rbn-scroll-to-top.active,
.rbn-scroll-top.active {
    display: flex;
}

.rbn-scroll-to-top i,
.rbn-scroll-top i {
    display: none;
}

/* --- 3. RBN Legal Cookie Notice Bar 🍪 --- */
.rbn-cookie-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: calc(100% - 48px);
    max-width: 800px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.rbn-cookie-bar.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.rbn-cookie-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-right: 24px;
    flex: 1;
}

.rbn-cookie-content a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(139, 92, 246, 0.4);
    transition: all 0.2s;
}

.rbn-cookie-content a:hover {
    color: #a78bfa;
    border-bottom-color: #a78bfa;
}

.rbn-cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.rbn-cookie-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3);
}

.rbn-cookie-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.4);
}

@media (max-width: 768px) {
    .rbn-cookie-bar {
        flex-direction: column;
        text-align: center;
        bottom: 16px;
        width: calc(100% - 32px);
        padding: 20px;
    }

    .rbn-cookie-content {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .rbn-cookie-actions {
        width: 100%;
    }

    .rbn-cookie-btn {
        width: 100%;
    }
}

/* ==========================================================================
   4. RBN Sovereign Pure-CSS Tooltip Engine (Zero JS / 0 KB) 🪐🛡️⚓
   Kullanım: <button data-tooltip="Şifreyi Göster">...</button>
   Opsiyonel Yön: data-tooltip-pos="bottom|left|right" (Varsayılan: top)
   ========================================================================== */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

/* Baloncuk Gövdesi (Top - Varsayılan) */
[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 5px 10px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 0.72rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

/* Ok Ucu (Top - Varsayılan) */
[data-tooltip]::after {
    content: '';
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: #0f172a;
}

/* Hover & Focus Tetikleyicisi */
[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::before,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Alt Yön: data-tooltip-pos="bottom" */
[data-tooltip-pos="bottom"]::before {
    bottom: auto;
    top: calc(100% + 7px);
    transform: translateX(-50%) translateY(-4px);
}
[data-tooltip-pos="bottom"]::after {
    bottom: auto;
    top: calc(100% + 2px);
    transform: translateX(-50%) translateY(-4px);
    border-top-color: transparent;
    border-bottom-color: #0f172a;
}
[data-tooltip-pos="bottom"]:hover::before,
[data-tooltip-pos="bottom"]:hover::after,
[data-tooltip-pos="bottom"]:focus-visible::before,
[data-tooltip-pos="bottom"]:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}