﻿/*
Theme Name: Cigar Genie
Description: Premium child theme of B2 PRO, specialized for cigar industry
Author: Cigar Genie Team
Template: b2
Version: 1.0.0
Text Domain: cigar-genie
*/

/* ===== Child Theme Styles ===== */

/* B2 Theme Color System - Cigar Theme Adaptation */
:root {
    /* B2 Native Color Variables */
    --b2-primary: #188ef4;
    --b2-primary-gradient: linear-gradient(to right, #0056f3 0%, #2b76ff 100%);
    --b2-secondary: #6c757d;
    --b2-success: #28a745;
    --b2-info: #17a2b8;
    --b2-warning: #ffc107;
    --b2-danger: #dc3545;
    --b2-light: #f8f9fa;
    --b2-dark: #343a40;
    
    /* B2 Theme Colors */
    --b2-vip-color: #bf7648;
    --b2-vip-bg: #f9e1be;
    --b2-shop-color: #f35;
    
    /* Cigar Theme Colors - Based on B2 Color System */
    --cigar-primary: var(--b2-primary);
    --cigar-secondary: var(--b2-secondary);
    --cigar-accent: var(--b2-vip-color);
    --cigar-light: var(--b2-light);
    --cigar-dark: var(--b2-dark);
    --cigar-success: var(--b2-success);
    --cigar-warning: var(--b2-warning);
    --cigar-danger: var(--b2-danger);
    
    /* Fully adopt B2 color system */
    --cigar-brown: var(--b2-primary, #007cba);  /* Feature styles */
    --cigar-gold: var(--b2-warning, #ffc107);   /* Feature styles */
}

/* Feature styles */
.b2-color, .button.b2-color {
    background-color: var(--cigar-primary) !important;
    border-color: var(--cigar-primary) !important;
}

.b2-color:hover, .button.b2-color:hover {
    background-color: var(--b2-primary) !important;
    border-color: var(--b2-primary) !important;
}

/* AI Chat Interface - Using B2's box styling */
.cigar-ai-container {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cigar-ai-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e6e6e6;
    background: #f8f9fa;
}

.cigar-ai-header h3 {
    color: var(--cigar-dark);
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.cigar-ai-chat {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px 20px;
    margin: 0;
    background: #fff;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
}

.chat-message.user-message {
    background: var(--cigar-light);
    margin-left: 20%;
    text-align: right;
}

.chat-message.ai-message {
    background: #fff;
    margin-right: 20%;
    border-left: 3px solid var(--cigar-accent);
}

.chat-message.error-message {
    background: #ffebee;
    border-left: 3px solid #f44336;
}

.cigar-ai-input {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cigar-ai-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* My Space Dashboard - Using B2's grid system */
.user-dashboard-header {
    padding: 20px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.user-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.user-details h3 {
    margin: 0;
    color: var(--cigar-dark);
    font-size: 18px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    border-right: 1px solid #e6e6e6;
    position: relative;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--cigar-primary);
    font-family: 'DIN-Medium', Arial, sans-serif;
}

.stat-label {
    font-size: 0.9em;
    color: var(--b2-secondary);
    margin-top: 5px;
}

/* Inventory Management */
.inventory-actions {
    margin-bottom: 20px;
}

.inventory-actions .button {
    margin-right: 10px;
}

/* Reviews List */
.reviews-list {
    padding: 15px;
}

.review-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color, #eee);
    margin-bottom: 15px;
}

.review-item h4 {
    margin: 0 0 10px 0;
}

.review-item h4 a {
    color: var(--cigar-dark);
    text-decoration: none;
}

.review-item h4 a:hover {
    color: var(--cigar-primary);
}

/* Cigar Rating Stars */
.cigar-rating-stars {
    display: inline-flex;
    gap: 2px;
}

.cigar-rating-stars .star {
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.cigar-rating-stars .star.active,
.cigar-rating-stars .star:hover {
    color: var(--b2-warning);
}

/* Feature styles */
.b2-color {
    background: var(--b2-primary-gradient) !important;
    border-color: var(--b2-primary) !important;
}

.b2-color:hover {
    background: var(--b2-primary) !important;
    border-color: var(--b2-primary) !important;
}

/* Feature styles */
.button, button {
    background: var(--b2-primary);
    color: #fff;
    border: 1px solid var(--b2-primary);
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}

.button:hover, button:hover {
    background: #0056f3;
    border-color: #0056f3;
    color: #fff;
}

.button.empty {
    background: transparent;
    color: var(--b2-primary);
    border: 1px solid var(--b2-primary);
}

.button.empty:hover {
    background: var(--b2-primary);
    color: #fff;
}

/* Feature styles */
.button.secondary {
    background: var(--b2-secondary);
    border-color: var(--b2-secondary);
}

.button.secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

/* Feature styles */
.button.success {
    background: var(--b2-success);
    border-color: var(--b2-success);
}

.button.success:hover {
    background: #218838;
    border-color: #218838;
}

/* Quick Actions Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.action-buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-buttons .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-buttons .button.b2-color {
    background: linear-gradient(135deg, var(--cigar-gold), var(--cigar-brown));
    color: white;
    border-color: var(--cigar-gold);
}

.action-buttons .button.b2-color:hover {
    background: linear-gradient(135deg, var(--cigar-brown), var(--cigar-dark));
    color: white;
}

/* Navigation Menu Enhancement */
.cigar-community-menu {
    background: var(--cigar-light);
    padding: 10px 0;
    border-radius: 8px;
    margin: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cigar-community-menu ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cigar-community-menu a {
    color: var(--cigar-dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cigar-community-menu a:hover {
    background: var(--cigar-gold);
    color: white;
}

/* Humidor Management Styles */
.humidor-manager-modal {
    z-index: 10003 !important;
}

.humidor-tab-content {
    min-height: 400px;
    padding: 20px;
}

.humidor-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.humidor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.humidor-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.humidor-status.optimal {
    background: #28a745;
    color: white;
}

.humidor-status.warning {
    background: #ffc107;
    color: #212529;
}

.humidor-status.critical {
    background: #dc3545;
    color: white;
}

.climate-reading {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.climate-value {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 2px;
}

.climate-label {
    font-size: 0.8em;
    color: #666;
}

.humidor-form {
    display: grid;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.humidor-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.humidor-table th,
.humidor-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.humidor-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.humidor-table tr:hover {
    background: #f8f9fa;
}

.quick-log-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tips-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tips-box h4 {
    color: #8B4513;
    margin-bottom: 15px;
}

.tips-box ul {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
}

.climate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.monitoring-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.no-data-message {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Responsive adjustments for humidor cards */
@media (max-width: 768px) {
    .humidor-card {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .climate-grid {
        grid-template-columns: 1fr;
    }
    
    .humidor-table {
        font-size: 0.9em;
    }
    
    .humidor-table th,
    .humidor-table td {
        padding: 8px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .cigar-community-menu ul {
        flex-direction: column;
        align-items: center;
    }
}

/* Widget Styles */
.cigar-quick-widget {
    padding: 10px 0;
}

.widget-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Humidor Management Styles */
.humidor-manager-modal {
    z-index: 10003 !important;
}

.humidor-tab-content {
    min-height: 400px;
    padding: 20px;
}

.humidor-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.humidor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.humidor-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.humidor-status.optimal {
    background: #28a745;
    color: white;
}

.humidor-status.warning {
    background: #ffc107;
    color: #212529;
}

.humidor-status.critical {
    background: #dc3545;
    color: white;
}

.climate-reading {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.climate-value {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 2px;
}

.climate-label {
    font-size: 0.8em;
    color: #666;
}

.humidor-form {
    display: grid;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.humidor-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.humidor-table th,
.humidor-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.humidor-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.humidor-table tr:hover {
    background: #f8f9fa;
}

.quick-log-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tips-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tips-box h4 {
    color: #8B4513;
    margin-bottom: 15px;
}

.tips-box ul {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
}

.climate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.monitoring-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.no-data-message {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

.widget-button {
    display: block;
    text-align: center;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
    border: 1px solid #ddd;
}

.widget-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.widget-button.b2-color {
    background: var(--cigar-gold);
    color: white;
    border-color: var(--cigar-gold);
}

.widget-button.b2-color:hover {
    background: var(--cigar-brown);
    border-color: var(--cigar-brown);
    color: white;
}

/* Modal Styles */
.cigar-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #ddd;
    background: var(--cigar-light);
}

.modal-header h3 {
    margin: 0;
    color: var(--cigar-dark);
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: var(--cigar-dark);
}

.modal-content form {
    padding: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--cigar-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cigar-gold);
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

.form-actions {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-actions .button {
    margin: 0 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.form-actions .button.b2-color {
    background: var(--cigar-gold);
    color: white;
}

.form-actions .button.b2-color:hover {
    background: var(--cigar-brown);
}

/* Star Rating Styles */
.rating-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.rating-group {
    text-align: center;
}

.star-rating {
    margin: 10px 0;
    font-size: 24px;
    cursor: pointer;
}

.star-rating .star {
    color: #ddd;
    transition: color 0.2s;
    margin: 0 2px;
}

.star-rating .star:hover,
.star-rating .star.hover,
.star-rating .star.active {
    color: var(--cigar-gold);
}

.stars-normal .star {
    font-size: 16px;
}

.stars-small .star {
    font-size: 14px;
}

.star-filled {
    color: var(--cigar-gold);
}

.star-empty {
    color: #ddd;
}

/* Review Management Styles */
.review-manager-modal {
    z-index: 10003 !important;
}

.review-tab-content {
    min-height: 400px;
    padding: 20px;
}

.review-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.review-form {
    display: grid;
    gap: 15px;
}

.review-rating-display {
    font-size: 1.2em;
    color: #ffc107;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-table th,
.review-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.review-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.review-table tr:hover {
    background: #f8f9fa;
}

.review-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-stat-card h3 {
    color: var(--b2-primary);
    margin-bottom: 15px;
}

.rating-bar {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.rating-bar-fill {
    background: #D2691E;
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.brand-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.strength-bar {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.strength-bar-fill {
    background: var(--b2-primary);
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.review-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.review-tag {
    background: var(--b2-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.85em;
    color: var(--b2-secondary);
    border: 1px solid var(--border-color, #e9ecef);
}

.review-date {
    color: var(--b2-secondary);
    font-size: 0.85em;
}

/* Responsive adjustments for review cards */
@media (max-width: 768px) {
    .review-card {
        padding: 15px;
    }
    
    .review-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .review-table {
        font-size: 0.9em;
    }
    
    .review-table th,
    .review-table td {
        padding: 8px;
    }
}

/* ===== Cigar Review Post Styles ===== */

/* Cigar Review Content Styling */
.cigar-review-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
    border-left: 4px solid var(--b2-primary);
}

.cigar-review-content h3 {
    color: var(--b2-dark);
    margin: 0 0 20px 0;
    font-size: 1.8em;
    font-weight: bold;
}

.cigar-review-content p {
    margin: 10px 0;
    line-height: 1.6;
    color: var(--text-primary, #333);
}

.cigar-review-content strong {
    color: var(--b2-primary);
    font-weight: 600;
}

.review-notes {
    background: var(--b2-light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 3px solid var(--b2-primary);
}

.review-notes h4 {
    color: var(--b2-dark);
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.review-notes p {
    color: var(--text-secondary, #555);
    white-space: pre-line;
    line-height: 1.7;
}

/* Rating Stars Styling */
.cigar-review-content p:has(⭐) {
    font-size: 1.1em;
    background: linear-gradient(135deg, var(--b2-light), #f0f8ff);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e9ecef);
}

/* Cigar Review Meta Information */
.cigar-review-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.review-meta-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--cigar-accent);
}

.review-meta-item strong {
    display: block;
    color: var(--cigar-brown);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.review-meta-value {
    font-size: 1.1em;
    color: #333;
}

/* B2 Theme Integration */
.single-post .cigar-review-content {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.entry-content .cigar-review-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-left: none;
}

/* Category Archive Styling for Cigar Reviews */
.category-cigar-reviews .post-list-item {
    border-left: 4px solid var(--cigar-brown);
}

.category-cigar-reviews .post-list-item .entry-title:before {
    content: "🚬 ";
    margin-right: 5px;
}

/* Responsive Design for Review Content */
@media (max-width: 768px) {
    .cigar-review-content {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .cigar-review-content h3 {
        font-size: 1.5em;
    }
    
    .cigar-review-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .review-meta-item {
        padding: 12px;
    }
    
    .review-notes {
        padding: 15px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .cigar-review-content {
        padding: 15px 10px;
    }
    
    .cigar-review-content h3 {
        font-size: 1.3em;
    }
}

/* Feature styles */
/* Feature styles */

/* Feature styles */
#author-index .user-s-cover {
    height: 0;
    padding-top: 25% !important; /* Feature styles */
    max-height: 200px; /* Feature styles */
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

#author-index .user-s-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature styles */
#author-index .user-s-info-avatar {
    width: 56px !important;
    height: 56px !important;
    margin-left: 20px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

#author-index .user-s-info-avatar img,
#author-index .user-s-info-avatar .avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Feature styles */
#author-index .user-s-info {
    display: flex;
    align-items: flex-start;
    margin-top: -28px;
    position: relative;
    z-index: 2;
    padding: 0 20px 20px;
}

#author-index .user-s-info-name {
    margin-top: 8px;
    margin-left: 14px;
    flex: 1;
}

#author-index .user-s-info h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Feature styles */
@media (max-width: 768px) {
    #author-index .user-s-cover {
        padding-top: 30% !important;
        max-height: 150px;
    }
    
    #author-index .user-s-info-avatar {
        width: 48px !important;
        height: 48px !important;
        margin-left: 15px;
    }
    
    #author-index .user-s-info {
        padding: 0 15px 15px;
        margin-top: -24px;
    }
}

@media (max-width: 480px) {
    #author-index .user-s-cover {
        padding-top: 35% !important;
        max-height: 120px;
    }
    
    #author-index .user-s-info-avatar {
        width: 40px !important;
        height: 40px !important;
        margin-left: 10px;
    }
    
    #author-index .user-s-info {
        padding: 0 10px 10px;
        margin-top: -20px;
    }
}


