/*
 * NPL Sports Pro Theme - Advanced Author Meta Styling
 * File: assets/css/author-meta.css
 * Responsive: 7 Breakpoints Support
 */

.npl-author-meta-box {
    display: flex;
    flex-direction: column; 
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    padding: 5px;
    border-radius: 8px;
    margin-top: 5px 0;
    gap: 0px;
}

/* TOP ROW: Identity section stays horizontal */
.meta-top-row {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.author-avatar-wrapper {
    position: relative;
    width: 30px;
    height: 30px;
	padding-left: 2px;
	padding-right: 2px;
    flex-shrink: 0;
}

.meta-avatar {
    width: 25px;
    height: 25px;
    border-radius: 6px; 
    object-fit: cover;
    border: 1px solid #eee;
}

.verified-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    color: #1da1f2;
    background: #fff;
    border-radius: 25%;
    font-size: 14px;
    line-height: 1;
}

.author-details {
    flex: 1;
}

.author-display-name {
    margin: 0 0 5px 0 !important;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.author-display-name a {
    color: #222;
    text-decoration: none;
}

.post-pill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 10px;
    color: #666;
}

.pill-tag i {
    color: #0010a0;
}

/* BOTTOM SECTION: Grey Utility Card */
.author-meta-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9f9;
    padding: 5px 5px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    gap: 5px;
}

.meta-views-count {
    font-size: 10px;
    font-weight: 500;
    color: #dd0000;
    background-color: #fff0f1;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(221, 0, 0, 0.1);
    white-space: nowrap;
}

.meta-inline-share {
    display: flex;
    gap: 5px;
}

.s-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff !important;
    font-size: 13px;
    transition: transform 0.2s;
}

.s-btn:hover { transform: translateY(-2px); }
.s-btn.fb { background: #3b5998; }
.s-btn.tw { background: #1da1f2; }
.s-btn.wa { background: #25d366; }
.s-btn.mail { background: #848484; }
.s-btn.print { background: #333; }

.meta-font-controls {
    display: flex;
    background: #fff;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.f-btn {
    background: #fff;
    border: none;
    width: 28px;
    height: 24px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    color: #555;
}

.f-btn:hover { color: #0010a0; }

/* ===================================================================
 * RESPONSIVE BREAKPOINTS (7 DEVICES)
 * =================================================================== */

/* 1. 4K Monitor & Desktop (Row on Desktop) */
@media (min-width: 1025px) {
    .npl-author-meta-box {
        flex-direction: row; 
        justify-content: space-between;
    }
    .author-meta-right {
        width: auto;
        background: transparent;
        border: none;
        padding: 0;
    }
    .meta-top-row { width: auto; }
}

/* 2-4. Laptops & Tablets */
@media (max-width: 1024px) {
    .author-display-name { font-size: 12px; }
}

/* 5. Tablets Portrait (768px) */
@media (max-width: 768px) {
    .author-avatar-wrapper { width: 25px; height: 25px; }
}

/* 6. Mobile Large (425px) */
@media (max-width: 425px) {
    .npl-author-meta-box { padding: 5px; gap: 5px; }
    .meta-avatar { width: 25px; height: 25px; }
    .author-display-name { font-size: 12px; }
    .post-pill-tags { font-size: 5px; gap: 5px; }
    
    .author-meta-right {
        flex-wrap: wrap; 
        justify-content: center;
        gap: 5px;
        padding: 5px 5px;
    }
}

/* 7. Mobile Small (320px) */
@media (max-width: 320px) {
    .npl-author-meta-box { padding: 5px; }
    .meta-avatar { width: 25px; height: 25px; }
    .author-display-name { font-size: 8px; }
    
    .author-meta-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
        padding: 2px 2px;
    }
    
    .s-btn { 
        width: 24px; 
        height: 24px; 
        font-size: 8px; 
    }
    
    .f-btn {
        width: 22px;
        height: 20px;
        font-size: 8px;
    }
    
    .meta-views-count { 
        padding: 2px 4px; 
        font-size: 8px; 
    }
}