/* ══════════════════════════════════════════════════════════════
   Standardized Hero Component
   Shared glass-morphism hero style used across all pages.
   Based on the FolderIndex hero design.
   ══════════════════════════════════════════════════════════════ */

.gi-std-hero {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 1.5rem;
    height: 72px;
    padding: 0 2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.75) 100%);
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 12px 24px rgba(15,23,42,0.06);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.gi-std-hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -100px auto;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.12), transparent 70%);
    pointer-events: none;
    transform: rotate(15deg);
}

.gi-std-hero__content {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
}

.gi-std-hero__title {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f172a;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Inline owner badge inside hero */
.gi-std-hero__owner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.3rem 0.85rem 0.3rem 0.3rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.gi-std-hero__owner-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.gi-std-hero__owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gi-std-hero__owner-initial {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d426f;
}

.gi-std-hero__owner-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

/* Hero action buttons */
.gi-std-hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.gi-std-hero__actions .gi-action-button {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

/* Page wrapper providing the radial-gradient background */
.gi-std-page {
    --gi-surface: #ffffff;
    --gi-border: rgba(15,23,42,0.06);
    --gi-shadow: 0 30px 60px rgba(15,23,42,0.08);
    --gi-muted: #64748b;
    --gi-primary: var(--bs-primary, #1d426f);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(99,102,241,0.08) 0%, transparent 55%),
        radial-gradient(140% 120% at 100% 0%, rgba(236,72,153,0.06) 0%, transparent 60%),
        #f4f6fb;
    padding: clamp(1.5rem, 2vw, 3rem) 0 2.5rem;
}

@media (max-width: 991.98px) {
    .gi-std-hero {
        border-radius: 14px;
    }
}

@media (max-width: 575.98px) {
    .gi-std-page {
        padding: 1.25rem 0 1.75rem;
    }
    .gi-std-hero {
        height: auto;
        min-height: 48px;
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }
    .gi-std-hero__title {
        font-size: 1.15rem;
    }
    .gi-std-hero__owner {
        padding: 0.2rem 0.6rem 0.2rem 0.2rem;
    }
    .gi-std-hero__owner-avatar {
        width: 24px;
        height: 24px;
    }
    .gi-std-hero__owner-name {
        font-size: 0.75rem;
    }
    .gi-std-hero__actions .gi-action-button {
        width: 38px;
        height: 38px;
        padding: 0;
        font-size: 0;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .gi-std-hero__actions .gi-action-button i {
        font-size: 0.95rem;
        margin: 0;
    }
    .gi-std-hero__actions .gi-action-button span {
        display: none;
    }
}
