/*
 * AdminLTE 2 tarzi kampanya bandi.
 * Renkler admin panelinden gelir:
 *   --campaign-bg
 *   --campaign-text-color
 *   --campaign-button-bg
 *   --campaign-button-text-color
 */
body .header-campaign {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0;
    padding: 8px 48px 8px 16px;
    color: var(--campaign-text-color, #ffffff);
    background-color: var(--campaign-bg, #3c8dbc);
    background-image: none;
    border: 0;
    border-bottom: 3px solid rgba(0, 0, 0, 0.16);
    border-radius: 0;
    box-shadow: none;
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
}

body .header-campaign *,
body .header-campaign *::before,
body .header-campaign *::after {
    box-sizing: border-box;
}

body .header-campaign-inner {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body .header-campaign-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.18);
    border: 0;
    border-radius: 3px;
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

body .header-campaign-icon i {
    margin: 0;
    color: inherit;
    font-size: 11px;
    line-height: 1;
}

body .header-campaign-text {
    display: inline-block;
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-align: center;
}

body .header-campaign a {
    display: inline-block;
    margin: 0 0 0 2px;
    padding: 5px 12px;
    color: var(--campaign-button-text-color, #3c8dbc);
    background-color: var(--campaign-button-bg, #ffffff);
    background-image: none;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 3px;
    box-shadow: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body .header-campaign a:hover,
body .header-campaign a:focus {
    color: var(--campaign-button-text-color, #3c8dbc);
    background-color: var(--campaign-button-bg, #ffffff);
    background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08));
    box-shadow: none;
    text-decoration: none;
}

body .header-campaign a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

body .header-campaign-close {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

body .header-campaign-close:hover,
body .header-campaign-close:focus {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    outline: none;
}

@media (max-width: 767px) {
    body .header-campaign {
        min-height: 0;
        padding: 7px 38px 7px 10px;
        font-size: 11px;
    }

    body .header-campaign-inner {
        gap: 6px;
    }

    body .header-campaign-icon {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    body .header-campaign-icon i {
        font-size: 10px;
    }

    body .header-campaign-text {
        font-size: 11px;
        line-height: 1.35;
    }

    body .header-campaign a {
        padding: 4px 10px;
        font-size: 10px;
    }

    body .header-campaign-close {
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .header-campaign a {
        transition: none;
    }
}

/*
 * Ust bilgi notu: kapat dugmesine basildiginda 3 gun boyunca gizlenir
 * (assets/js/top-note.js tarafindan yonetilir).
 */
html.top-note-dismissed .header-top-note {
    display: none !important;
}

/*
 * Uye sayfalari (auth-site-header) eski yuvarlak band kurallarini yukler;
 * burada ayni duz AdminLTE 2 gorunumu zorlanir.
 */
body .auth-site-header .header-campaign {
    min-height: 40px;
    padding: 8px 48px 8px 16px;
    background-image: none;
    border: 0;
    border-bottom: 3px solid rgba(0, 0, 0, 0.16);
    border-radius: 0;
    box-shadow: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

body .auth-site-header .header-campaign-inner {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body .auth-site-header .header-campaign-icon {
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.18);
    border: 0;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

body .auth-site-header .header-campaign-icon i {
    font-size: 11px;
    line-height: 1;
}

body .auth-site-header .header-campaign-text {
    font-size: 12px;
    font-weight: 600;
}

body .auth-site-header .header-campaign a {
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
}

body .auth-site-header .header-campaign-close {
    right: 12px;
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    font-size: 16px;
}

@media (max-width: 767px) {
    body .auth-site-header .header-campaign {
        min-height: 0;
        padding: 7px 38px 7px 10px;
        font-size: 11px;
    }

    body .auth-site-header .header-campaign-inner {
        gap: 6px;
    }

    body .auth-site-header .header-campaign-icon {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    body .auth-site-header .header-campaign-icon i {
        font-size: 10px;
    }

    body .auth-site-header .header-campaign-text {
        font-size: 11px;
        line-height: 1.35;
    }

    body .auth-site-header .header-campaign a {
        padding: 4px 10px;
        font-size: 10px;
    }

    body .auth-site-header .header-campaign-close {
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 15px;
    }
}
