/* ads/assets/css/gilroy.css */

@font-face {
    font-family: 'Gilroy';
    src: url('../../gilroy/Gilroy-Light.ttf') format('truetype'),
         url('/ads/gilroy/Gilroy-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../../gilroy/Gilroy-Regular.ttf') format('truetype'),
         url('/ads/gilroy/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../../gilroy/Gilroy-Medium.ttf') format('truetype'),
         url('/ads/gilroy/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../../gilroy/Gilroy-SemiBold.ttf') format('truetype'),
         url('/ads/gilroy/Gilroy-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('../../gilroy/Gilroy-Bold.ttf') format('truetype'),
         url('/ads/gilroy/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Meta / Facebook Ads Manager Typography & Color System */
:root {
    --font-sans: 'Gilroy', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fb-primary: #1877F2;
    --fb-primary-hover: #1465D2;
    --fb-primary-light: #EBF3FF;
    --fb-surface: #FFFFFF;
    --fb-page-bg: #F0F2F5;
    --fb-ink: #1C1E21;
    --fb-secondary: #65676B;
    --fb-border: #E4E6EB;
    --fb-hover-bg: #F2F4F7;
    --fb-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

body {
    font-family: var(--font-sans);
    background-color: var(--fb-page-bg);
    color: var(--fb-ink);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Clean Meta Surface Card */
.fb-card {
    background-color: var(--fb-surface);
    border: 1px solid var(--fb-border);
    border-radius: 1rem;
    box-shadow: var(--fb-card-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fb-card:hover {
    border-color: #CED0D4;
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    border: 1px solid transparent;
}

/* Pulsing Live Dot */
@keyframes pulseLiveLight {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(66, 176, 114, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(66, 176, 114, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(66, 176, 114, 0); }
}

.pulsing-live-dot {
    width: 6px;
    height: 6px;
    background-color: #42B072;
    border-radius: 50%;
    display: inline-block;
    animation: pulseLiveLight 2s infinite;
}

/* Meta Hover Expandable Sidebar */
.meta-sidebar {
    width: 76px;
    transition: width 0.22s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.22s ease;
    will-change: width;
    z-index: 999;
    overflow-x: hidden;
    white-space: nowrap;
}

.meta-sidebar:hover {
    width: 260px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.meta-sidebar .nav-label {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
}

.meta-sidebar:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.meta-sidebar .full-logo-container {
    display: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.meta-sidebar:hover .full-logo-container {
    display: flex;
    opacity: 1;
}

.meta-sidebar .mini-logo-icon {
    display: flex;
}

.meta-sidebar:hover .mini-logo-icon {
    display: none;
}

.page-content-wrapper {
    margin-left: 76px;
    transition: margin-left 0.22s ease;
    min-width: 0;
}

@media (max-width: 768px) {
    .page-content-wrapper {
        margin-left: 0 !important;
    }
}