/* ========================================
   AUTHOR PAGE CSS - RIÊNG BIỆT
   File: author.css
   ======================================== */

/* ========================================
   AUTHOR PROFILE HEADER
   ======================================== */

.author-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    margin-bottom: 0 !important;
}

/* AUTHOR AVATAR */
.author-header img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    border: 6px solid rgba(255,255,255,0.9) !important;
    object-fit: cover !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
    display: block !important;
    margin: 0 auto 20px auto !important;
}

/* AUTHOR NAME & TITLE */
.author-header h1 {
    font-size: 32px !important;
    margin-bottom: 10px !important;
    color: white !important;
    text-align: center !important;
}

.author-header > div > p:first-of-type {
    font-size: 18px !important;
    margin-bottom: 15px !important;
    color: white !important;
    text-align: center !important;
}

/* AUTHOR BIO */
.author-header > div > p:nth-of-type(2) {
    line-height: 1.5 !important;
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
    text-align: center !important;
}

/* CONTACT LINKS */
.author-header a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: white !important;
    text-decoration: none !important;
    background: rgba(255,255,255,0.15) !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    margin-right: 10px !important;
    margin-bottom: 5px !important;
}

.author-header a:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: translateY(-1px) !important;
}

/* STATS */
.author-header > div:last-child > div:last-child {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    margin-top: 15px !important;
}

.author-header > div:last-child > div:last-child > div {
    text-align: center !important;
}

.author-header > div:last-child > div:last-child > div > div:first-child {
    font-size: 24px !important;
    font-weight: bold !important;
    color: white !important;
}

.author-header > div:last-child > div:last-child > div > div:last-child {
    font-size: 12px !important;
    opacity: 0.8 !important;
    color: white !important;
}

/* ========================================
   VOTE WIDGET STYLING
   ======================================== */

.author-rating-widget {
    background: white !important;
    padding: 25px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    height: fit-content !important;
}

.author-rating-widget h3 {
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #e74c3c !important;
    padding-bottom: 10px !important;
    text-align: center !important;
}

/* RATING STARS */
.author-rating-widget .rating-stars {
    font-size: 40px !important;
    color: #f39c12 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
}

/* RATING FORM */
.author-rating-widget form label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.author-rating-widget form label:hover {
    border-color: #f39c12 !important;
    background-color: #fff8f0 !important;
}

.author-rating-widget form button {
    width: 100% !important;
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3) !important;
}

.author-rating-widget form button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4) !important;
}

/* ========================================
   AUTHOR POSTS SECTIONS
   ======================================== */

/* POSTS TITLE */
.author-posts-title {
    text-align: center !important;
    margin-bottom: 30px !important;
}

.author-posts-title h2 {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    padding: 20px 30px !important;
    border-radius: 12px !important;
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.author-posts-title p {
    color: #666 !important;
    margin-top: 15px !important;
    font-size: 16px !important;
}

/* POSTS CONTAINER */
.author-posts-container {
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* SECTION HEADERS */
.author-section-header {
    font-size: 18px !important;
    margin-bottom: 20px !important;
    padding: 15px 20px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 600 !important;
}

/* HOT POSTS SECTION */
.hot-posts-header {
    color: #e74c3c !important;
    background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
    border-left: 5px solid #e74c3c !important;
}

/* FEATURED POSTS SECTION */
.featured-posts-header {
    color: #f39c12 !important;
    background: linear-gradient(135deg, #fef3e2, #fed7aa) !important;
    border-left: 5px solid #f39c12 !important;
}

/* RECENT POSTS SECTION */
.recent-posts-header {
    color: #27ae60 !important;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
    border-left: 5px solid #27ae60 !important;
}

/* ========================================
   AUTHOR POST ITEMS
   ======================================== */

.author-post-item {
    display: flex !important;
    gap: 15px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    background: #fff !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    align-items: flex-start !important;
}

/* HOT POSTS */
.author-post-item.hot {
    border: 1px solid #fecaca !important;
    border-left: 4px solid #e74c3c !important;
}

.author-post-item.hot:hover {
    transform: translateX(5px) !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15) !important;
}

/* FEATURED POSTS */
.author-post-item.featured {
    border: 1px solid #fed7aa !important;
    border-left: 4px solid #f39c12 !important;
}

.author-post-item.featured:hover {
    transform: translateX(5px) !important;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.15) !important;
}

/* RECENT POSTS */
.author-post-item.recent {
    border: 1px solid #a7f3d0 !important;
    border-left: 4px solid #27ae60 !important;
}

.author-post-item.recent:hover {
    transform: translateX(5px) !important;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.15) !important;
}

/* POST THUMBNAILS */
.author-post-thumb {
    width: 120px !important;
    height: 80px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f0f0f0 !important;
}

.author-post-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* POST CONTENT */
.author-post-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.author-post-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    color: #2c3e50 !important;
}

.author-post-title a {
    color: inherit !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: block !important;
}

/* POST ICONS */
.author-post-item.hot .author-post-title a::before {
    content: "🔥 " !important;
    color: #e74c3c !important;
}

.author-post-item.featured .author-post-title a::before {
    content: "⭐ " !important;
    color: #f39c12 !important;
}

/* POST META */
.author-post-meta {
    font-size: 12px !important;
    color: #666 !important;
    line-height: 1.3 !important;
}

/* ========================================
   AUTHOR PAGINATION
   ======================================== */

.author-pagination {
    margin-top: 30px !important;
    text-align: center !important;
}

.author-pagination .page-numbers {
    display: inline-block !important;
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    margin: 0 2px !important;
}

.author-pagination .page-numbers:hover,
.author-pagination .page-numbers.current {
    background: #7c3aed !important;
    color: white !important;
    border-color: #7c3aed !important;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.author-empty-state {
    text-align: center !important;
    padding: 50px !important;
    color: #666 !important;
}

.author-empty-state .empty-icon {
    font-size: 64px !important;
    margin-bottom: 20px !important;
    opacity: 0.5 !important;
}

.author-empty-state h3 {
    margin-bottom: 15px !important;
    color: #999 !important;
}

/* ========================================
   RESPONSIVE FOR AUTHOR PAGE
   ======================================== */

@media (max-width: 1024px) {
    .author-profile-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .author-rating-widget {
        order: 2 !important;
        margin-top: 20px !important;
    }
    
    .author-header {
        order: 1 !important;
    }
}

@media (max-width: 768px) {
    .author-header {
        padding: 20px !important;
    }
    
    .author-header h1 {
        font-size: 24px !important;
    }
    
    .author-header img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .author-posts-title h2 {
        font-size: 20px !important;
        padding: 15px 20px !important;
    }
    
    .author-posts-container {
        padding: 20px !important;
    }
    
    .author-post-item {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px !important;
    }
    
    .author-post-thumb {
        width: 100% !important;
        height: 150px !important;
    }
    
    .author-post-title {
        font-size: 14px !important;
    }
    
    .author-post-meta {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .author-header {
        padding: 15px !important;
    }
    
    .author-header h1 {
        font-size: 20px !important;
    }
    
    .author-header img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .author-posts-title h2 {
        font-size: 18px !important;
        padding: 12px 15px !important;
    }
    
    .author-posts-container {
        padding: 15px !important;
    }
    
    .author-section-header {
        font-size: 16px !important;
        padding: 12px 15px !important;
    }
    
    .author-post-item {
        padding: 12px !important;
    }
    
    .author-post-thumb {
        height: 120px !important;
    }
}