/* =====================================================
   Author Box – Adrien Piron
   Ultra-Premium Integrated v6.0
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --ap-font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Core Aesthetics */
    --ap-bg-glass: rgba(255, 255, 255, 0.95);
    --ap-border-glass: rgba(255, 255, 255, 1);
    --ap-text-primary: #0f172a;
    --ap-text-secondary: #475569;
    --ap-accent: #2563eb;
    
    /* Luxury Shadows */
    --ap-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    
    /* Vibrant Brand Colors */
    --color-facebook: #1877F2;
    --color-linkedin: #0077B5;
    --color-twitter: #000000;
    --color-copy: #6366f1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ap-bg-glass: rgba(15, 23, 42, 0.98);
        --ap-border-glass: rgba(255, 255, 255, 0.05);
        --ap-text-primary: #f8fafc;
        --ap-text-secondary: #94a3b8;
        --ap-accent: #3b82f6;
        --ap-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
        --color-twitter: #ffffff;
    }
}

/* ── Main Container ── */
.ap-box {
    position: relative;
    padding: 2.5rem;
    margin: 4rem 0;
    background: var(--ap-bg-glass);
    border: 1px solid var(--ap-border-glass);
    border-radius: 32px;
    font-family: var(--ap-font-family);
    box-sizing: border-box;
    box-shadow: var(--ap-box-shadow);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.ap-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

/* ── Layout : Grid for better integration ── */
.ap-author {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ap-author__avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--ap-accent), #818cf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.ap-author__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--ap-bg-glass);
}

.ap-author__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px !important;
}

.ap-author__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.ap-author__name {
    margin: 0 !important;
    font-size: 24px;
    font-weight: 800;
    color: var(--ap-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1 !important;
}

.ap-verified-badge {
    color: var(--ap-accent);
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

.ap-author__role {
    margin: 0 !important;
    font-size: 15px;
    font-weight: 600;
    color: var(--ap-accent);
    line-height: 1.2 !important;
}

.ap-author__role a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.ap-author__role a:hover {
    border-bottom-color: var(--ap-accent);
}

.ap-author__bio {
    margin: 0;
    font-size: 15.5px;
    color: var(--ap-text-secondary);
    line-height: 1.7;
}

/* ── Share Section : Unified ── */
.ap-box__share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (prefers-color-scheme: dark) {
    .ap-box__share { border-top-color: rgba(255, 255, 255, 0.05); }
}

.ap-box__share-text {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ap-text-secondary);
    white-space: nowrap;
}

.ap-box__actions {
    display: flex;
    gap: 10px;
}

/* Brand Buttons : Solid & Vibrant */
.ap-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border-radius: 12px;
    color: #ffffff !important;
    border: none !important;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: visible !important;
}

.ap-btn svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: block !important;
    margin: 0 auto !important;
    fill: #ffffff !important;
}

/* Force icons visibility and WHITE color (Solid Fill) */
.ap-btn--copy svg, 
.ap-btn--copy svg path,
.ap-btn--native svg,
.ap-btn--native svg path { 
    fill: #ffffff !important; 
    stroke: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Icons with fill (Socials) */
.ap-btn--facebook svg,
.ap-btn--linkedin svg,
.ap-btn--twitter svg {
    fill: currentColor !important;
}

.ap-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
}

.ap-btn--facebook { background: var(--color-facebook) !important; }
.ap-btn--linkedin { background: var(--color-linkedin) !important; }
.ap-btn--twitter { 
    background: var(--color-twitter) !important; 
    color: #000 !important;
}
@media (prefers-color-scheme: light) {
    .ap-btn--twitter { color: #fff !important; }
}

.ap-btn--copy { background: #6366f1 !important; }
.ap-btn--native { background: #0ea5e9 !important; }

.ap-btn--copied {
    background: #059669 !important;
    transform: scale(1.15);
}

/* ── Responsive ── */
@media (max-width: 800px) {
    .ap-box { padding: 2rem; }
    .ap-box__share {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .ap-author {
        flex-direction: column;
        text-align: center;
    }
    .ap-author__header { justify-content: center; }
}
