/**
 * Author Box Plugin - Frontend Styles
 */

/* Reset i podstawowe style */
.abp-author-box {
    margin: 40px 0;
    clear: both;
}

.abp-author-box * {
    box-sizing: border-box;
}

.abp-author-box-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Zdjęcie autora */
.abp-author-photo {
    flex-shrink: 0;
}

.abp-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.abp-author-photo.abp-no-photo .abp-avatar-placeholder {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Informacje o autorze */
.abp-author-info {
    flex: 1;
    min-width: 0;
}

.abp-author-header {
    margin-bottom: 12px;
}

.abp-author-name {
    margin: 0 0 4px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.abp-author-position {
    display: inline-block;
    font-size: 0.875rem;
    color: #666;
}

.abp-author-bio {
    margin-bottom: 16px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #444;
}

.abp-author-bio p:last-child {
    margin-bottom: 0;
}

/* Footer z social i buttonem */
.abp-author-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.abp-author-social {
    display: flex;
    gap: 8px;
}

.abp-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.abp-social-link:hover {
    background: #333;
    color: #fff;
}

.abp-social-link svg {
    width: 18px;
    height: 18px;
}

/* Przycisk */
.abp-author-button {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.abp-author-button:hover {
    background: #555;
    color: #fff;
    text-decoration: none;
}

/* ==================== */
/* STYLE: DEFAULT */
/* ==================== */
.abp-style-default .abp-author-box-inner {
    padding: 24px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* ==================== */
/* STYLE: MODERN */
/* ==================== */
.abp-style-modern .abp-author-box-inner {
    padding: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
}

.abp-style-modern .abp-author-name {
    color: #fff;
}

.abp-style-modern .abp-author-position {
    color: rgba(255, 255, 255, 0.8);
}

.abp-style-modern .abp-author-bio {
    color: rgba(255, 255, 255, 0.9);
}

.abp-style-modern .abp-social-link {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.abp-style-modern .abp-social-link:hover {
    background: #fff;
    color: #667eea;
}

.abp-style-modern .abp-author-button {
    background: #fff;
    color: #667eea;
}

.abp-style-modern .abp-author-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #764ba2;
}

/* ==================== */
/* STYLE: MINIMAL */
/* ==================== */
.abp-style-minimal .abp-author-box-inner {
    padding: 24px 0;
    border-top: 2px solid #333;
}

.abp-style-minimal .abp-author-avatar {
    width: 80px;
    height: 80px;
}

.abp-style-minimal .abp-author-photo.abp-no-photo .abp-avatar-placeholder {
    width: 80px;
    height: 80px;
}

.abp-style-minimal .abp-author-button {
    background: transparent;
    color: #333;
    border: 2px solid #333;
    padding: 8px 16px;
}

.abp-style-minimal .abp-author-button:hover {
    background: #333;
    color: #fff;
}

/* ==================== */
/* STYLE: CARD */
/* ==================== */
.abp-style-card .abp-author-box-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.abp-style-card .abp-author-avatar {
    width: 120px;
    height: 120px;
}

.abp-style-card .abp-author-photo.abp-no-photo .abp-avatar-placeholder {
    width: 120px;
    height: 120px;
}

.abp-style-card .abp-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.abp-style-card .abp-author-header {
    text-align: center;
}

.abp-style-card .abp-author-footer {
    flex-direction: column;
    gap: 16px;
}

.abp-style-card .abp-author-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 32px;
    border-radius: 50px;
}

.abp-style-card .abp-author-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */
@media (max-width: 600px) {
    .abp-author-box-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .abp-author-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .abp-author-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}