/* AuthorHub Pro - Frontend Styles */

/**
 * AuthorHub Pro Frontend Styles
 * @package AuthorHub_Pro
 * @since 2.0.0
 */

:root {
    --authorhub-primary: #2271b1;
    --authorhub-secondary: #72aee6;
    --authorhub-accent: #00a32a;
    --authorhub-text: #1d2327;
    --authorhub-text-light: #646970;
    --authorhub-border: #ddd;
    --authorhub-bg-light: #f8f9fa;
    --authorhub-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --authorhub-radius: 8px;
    --authorhub-transition: all 0.3s ease;
}

/* General Styles */
.authorhub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.authorhub-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.authorhub-col {
    flex: 1;
    padding: 0 15px;
    margin-bottom: 30px;
}

.authorhub-col-1 { flex: 0 0 8.333%; }
.authorhub-col-2 { flex: 0 0 16.666%; }
.authorhub-col-3 { flex: 0 0 25%; }
.authorhub-col-4 { flex: 0 0 33.333%; }
.authorhub-col-6 { flex: 0 0 50%; }
.authorhub-col-8 { flex: 0 0 66.666%; }
.authorhub-col-9 { flex: 0 0 75%; }
.authorhub-col-12 { flex: 0 0 100%; }

/* Dashboard Styles */
.authorhub-dashboard,
.authorhub-authors-listing,
.authorhub-author-profile,
.authorhub-login-form,
.authorhub-register-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.authorhub-dashboard h2 {
    margin-bottom: 30px;
    font-size: 32px;
    color: #333;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--authorhub-transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card .number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stat-card .label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    color: #7f8c8d;
    letter-spacing: 1px;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.dashboard-actions .button {
    padding: 12px 24px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--authorhub-transition);
    display: inline-block;
}

.button {
    background-color: #3498db;
    color: #fff;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.button-primary {
    background-color: #27ae60;
}

.button-primary:hover {
    background-color: #229954;
}

/* Enhanced Button Styles */
.authorhub-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: var(--authorhub-transition);
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.authorhub-btn-primary {
    background: var(--authorhub-primary);
    color: white;
    flex: 1;
}

.authorhub-btn-primary:hover {
    background: #1e5a8a;
    color: white;
}

.authorhub-btn-secondary {
    background: transparent;
    color: var(--authorhub-primary);
    border: 1px solid var(--authorhub-primary);
}

.authorhub-btn-secondary:hover {
    background: var(--authorhub-primary);
    color: white;
}

.authorhub-btn-large {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
}

/* Authors Grid */
.authors-grid,
.authorhub-authors-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.authors-grid.columns-2,
.authorhub-authors-grid.columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.authors-grid.columns-3,
.authorhub-authors-grid.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.authors-grid.columns-4,
.authorhub-authors-grid.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Author Cards */
.author-card,
.authorhub-author-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--authorhub-radius);
    padding: 30px;
    text-align: center;
    transition: var(--authorhub-transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--authorhub-shadow);
}

.author-card:hover,
.authorhub-author-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.author-card.featured {
    border-color: #f39c12;
    box-shadow: 0 0 0 2px #f39c1220;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: #f39c12;
    color: #fff;
    padding: 5px 40px;
    font-size: 12px;
    transform: rotate(45deg);
    font-weight: bold;
    text-transform: uppercase;
}

/* Enhanced Author Card Header */
.authorhub-author-header {
    background: linear-gradient(135deg, var(--authorhub-primary), var(--authorhub-secondary));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
    margin: -30px -30px 20px -30px;
    border-radius: var(--authorhub-radius) var(--authorhub-radius) 0 0;
}

.author-avatar,
.authorhub-author-avatar {
    margin-bottom: 20px;
}

.author-avatar img,
.authorhub-author-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e0e0e0;
    transition: var(--authorhub-transition);
}

.authorhub-author-avatar img {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255,255,255,0.2);
}

.author-card:hover .author-avatar img,
.authorhub-author-card:hover .authorhub-author-avatar img {
    border-color: #3498db;
}

.author-name,
.authorhub-author-name {
    font-size: 22px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.authorhub-author-name {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 5px;
    color: white;
}

.authorhub-author-title {
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0;
    color: white;
}

.author-name a {
    color: inherit;
    text-decoration: none;
}

.author-name a:hover {
    color: #3498db;
}

.author-bio,
.authorhub-author-bio {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.authorhub-author-bio {
    color: var(--authorhub-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.authorhub-author-content {
    padding: 20px;
}

/* Author Statistics */
.author-stats,
.authorhub-author-stats {
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--authorhub-bg-light);
    border-radius: var(--authorhub-radius);
}

.book-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.book-count .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.authorhub-stat {
    text-align: center;
}

.authorhub-stat-number {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--authorhub-primary);
    display: block;
}

.authorhub-stat-label {
    font-size: 0.8em;
    color: var(--authorhub-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Links */
.author-social,
.authorhub-author-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.social-link,
.authorhub-social-link {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    position: relative;
    transition: var(--authorhub-transition);
    color: var(--authorhub-text-light);
    text-decoration: none;
}

.authorhub-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--authorhub-bg-light);
}

.social-link:hover,
.authorhub-social-link:hover {
    background: #3498db;
    transform: translateY(-3px);
    color: white;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.social-link.twitter::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z'/%3E%3C/svg%3E");
}

.social-link.facebook::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z'/%3E%3C/svg%3E");
}

.social-link.instagram::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

.social-link.linkedin::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
}

.social-link.website::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10 15.3 15.3 0 014-10z'/%3E%3C/svg%3E");
}

/* Author Actions */
.authorhub-author-actions {
    display: flex;
    gap: 10px;
}

/* Author Profile Page */
.authorhub-author-profile {
    background: #fff;
    border-radius: var(--authorhub-radius);
    box-shadow: var(--authorhub-shadow);
    overflow: hidden;
    margin: 30px 0;
}

.author-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
}

.authorhub-profile-header {
    background: linear-gradient(135deg, var(--authorhub-primary), var(--authorhub-secondary));
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.authorhub-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.2);
    margin: 0 auto 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

.authorhub-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-header .author-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e0e0e0;
}

.author-info {
    flex: 1;
}

.author-info h1,
.authorhub-profile-name {
    margin: 0 0 20px;
    font-size: 36px;
    color: #2c3e50;
}

.authorhub-profile-name {
    font-size: 2em;
    font-weight: 600;
    margin: 0 0 10px;
    color: white;
}

.authorhub-profile-tagline {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0 0 20px;
    color: white;
}

.author-bio {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.authorhub-profile-content {
    padding: 40px 30px;
}

.authorhub-profile-section {
    margin-bottom: 40px;
}

.authorhub-section-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--authorhub-text);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--authorhub-primary);
    display: inline-block;
}

.authorhub-bio-text {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--authorhub-text-light);
    margin-bottom: 20px;
}

.author-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Books Grid */
.authorhub-books-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.authorhub-books-grid.columns-2 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.authorhub-books-grid.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.authorhub-books-grid.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Book Cards */
.book-item,
.authorhub-book-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--authorhub-radius);
    overflow: hidden;
    transition: var(--authorhub-transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--authorhub-shadow);
}

.book-item:hover,
.authorhub-book-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.authorhub-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.book-link {
    text-decoration: none;
    color: inherit;
}

.book-cover,
.authorhub-book-cover {
    position: relative;
    padding-bottom: 150%;
    overflow: hidden;
    background: #f0f0f0;
    height: 200px;
    padding-bottom: 0;
}

.book-cover img,
.authorhub-book-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--authorhub-transition);
}

.book-item:hover .book-cover img,
.authorhub-book-card:hover .authorhub-book-cover img {
    transform: scale(1.05);
}

.authorhub-book-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--authorhub-accent);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    text-align: center;
}

.book-title,
.authorhub-book-title {
    padding: 15px;
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.authorhub-book-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--authorhub-text);
    margin: 0 0 8px;
    line-height: 1.3;
    padding: 0;
}

.authorhub-book-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.authorhub-book-author {
    color: var(--authorhub-text-light);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.authorhub-book-author a {
    color: var(--authorhub-primary);
    text-decoration: none;
}

.authorhub-book-author a:hover {
    text-decoration: underline;
}

.book-meta {
    padding: 0 15px 15px;
}

.book-price,
.authorhub-book-price {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 10px;
}

.authorhub-book-price {
    font-size: 1.2em;
    color: var(--authorhub-accent);
}

.book-rating,
.authorhub-book-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.authorhub-stars {
    color: #ffd700;
    font-size: 0.9em;
}

.authorhub-rating-text {
    font-size: 0.8em;
    color: var(--authorhub-text-light);
}

.book-excerpt,
.authorhub-book-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.authorhub-book-description {
    color: var(--authorhub-text-light);
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.authorhub-book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--authorhub-border);
}

.book-actions,
.authorhub-book-actions {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
}

.book-actions .button {
    width: 100%;
    text-align: center;
}

/* Search and Filter */
.authorhub-search-filters {
    background: #fff;
    padding: 20px;
    border-radius: var(--authorhub-radius);
    box-shadow: var(--authorhub-shadow);
    margin-bottom: 30px;
}

.authorhub-search-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.authorhub-search-field {
    flex: 1;
    min-width: 200px;
}

.authorhub-search-input,
.authorhub-filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--authorhub-border);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--authorhub-transition);
}

.authorhub-search-input:focus,
.authorhub-filter-select:focus {
    outline: none;
    border-color: var(--authorhub-primary);
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.authorhub-search-btn {
    background: var(--authorhub-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--authorhub-transition);
}

.authorhub-search-btn:hover {
    background: #1e5a8a;
}

/* Pagination */
.authorhub-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 40px 0;
}

.authorhub-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--authorhub-border);
    border-radius: 4px;
    color: var(--authorhub-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--authorhub-transition);
}

.authorhub-page-link:hover,
.authorhub-page-link.current {
    background: var(--authorhub-primary);
    border-color: var(--authorhub-primary);
    color: white;
}

.authorhub-page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Book Details */
.authorhub-book-details {
    background: #fff;
    border-radius: var(--authorhub-radius);
    box-shadow: var(--authorhub-shadow);
    overflow: hidden;
    margin: 30px 0;
}

.authorhub-book-hero {
    display: flex;
    padding: 40px;
    gap: 40px;
    align-items: flex-start;
}

.authorhub-book-cover-large {
    flex-shrink: 0;
    width: 250px;
    height: 350px;
    border-radius: var(--authorhub-radius);
    overflow: hidden;
    box-shadow: var(--authorhub-shadow);
}

.authorhub-book-cover-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.authorhub-book-info {
    flex: 1;
}

.authorhub-book-title-large {
    font-size: 2.2em;
    font-weight: 600;
    color: var(--authorhub-text);
    margin: 0 0 10px;
    line-height: 1.2;
}

.authorhub-book-subtitle {
    font-size: 1.1em;
    color: var(--authorhub-text-light);
    margin-bottom: 20px;
}

.authorhub-book-author-large {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.authorhub-book-author-large a {
    color: var(--authorhub-primary);
    text-decoration: none;
    font-weight: 500;
}

.authorhub-book-price-large {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--authorhub-accent);
    margin-bottom: 25px;
}

.authorhub-book-actions-large {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.authorhub-book-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 30px 40px;
    background: var(--authorhub-bg-light);
}

.authorhub-meta-item {
    text-align: center;
}

.authorhub-meta-label {
    font-size: 0.8em;
    color: var(--authorhub-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.authorhub-meta-value {
    font-weight: 600;
    color: var(--authorhub-text);
}

/* Reviews Section */
.authorhub-reviews {
    padding: 40px;
    border-top: 1px solid var(--authorhub-border);
}

.authorhub-review-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--authorhub-border);
}

.authorhub-rating-overview {
    text-align: center;
}

.authorhub-average-rating {
    font-size: 3em;
    font-weight: bold;
    color: var(--authorhub-primary);
    line-height: 1;
}

.authorhub-rating-breakdown {
    flex: 1;
}

.authorhub-rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.authorhub-rating-stars-small {
    color: #ffd700;
    font-size: 0.8em;
}

.authorhub-rating-progress {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.authorhub-rating-fill {
    height: 100%;
    background: #ffd700;
    transition: width 0.3s ease;
}

.authorhub-rating-count {
    font-size: 0.8em;
    color: var(--authorhub-text-light);
    min-width: 30px;
}

.authorhub-review-item {
    border-bottom: 1px solid var(--authorhub-border);
    padding: 20px 0;
}

.authorhub-review-item:last-child {
    border-bottom: none;
}

.authorhub-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.authorhub-reviewer-name {
    font-weight: 600;
    color: var(--authorhub-text);
}

.authorhub-review-date {
    font-size: 0.8em;
    color: var(--authorhub-text-light);
}

.authorhub-review-text {
    color: var(--authorhub-text-light);
    line-height: 1.6;
}

/* Login/Register Forms */
.authorhub-login-form,
.authorhub-register-form {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.authorhub-login-form h3,
.authorhub-register-form h3 {
    margin: 0 0 30px;
    text-align: center;
    color: #2c3e50;
}

.authorhub-login-form p,
.authorhub-register-form p {
    margin-bottom: 20px;
}

.authorhub-login-form label,
.authorhub-register-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.authorhub-login-form .input,
.authorhub-register-form .input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.authorhub-login-form .input:focus,
.authorhub-register-form .input:focus {
    outline: none;
    border-color: #3498db;
}

.authorhub-login-form textarea.input,
.authorhub-register-form textarea.input {
    resize: vertical;
    min-height: 100px;
}

.login-remember label,
.terms-agreement label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.login-remember input[type="checkbox"],
.terms-agreement input[type="checkbox"] {
    margin-right: 5px;
}

.login-submit,
.register-submit {
    text-align: center;
    margin-top: 30px;
}

.login-submit .button,
.register-submit .button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
}

.login-links a:hover {
    text-decoration: underline;
}

.required {
    color: #e74c3c;
}

/* Statistics */
.authorhub-stats {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-box h4 {
    margin: 0 0 10px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.chart-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    min-height: 300px;
}

/* Recent Posts */
.recent-posts {
    margin-top: 40px;
}

.recent-posts h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.recent-posts-list a:hover {
    text-decoration: underline;
}

.post-date {
    color: #999;
    font-size: 14px;
}

/* Loading States */
.authorhub-loading {
    text-align: center;
    padding: 40px;
    color: var(--authorhub-text-light);
}

.authorhub-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--authorhub-border);
    border-radius: 50%;
    border-top-color: var(--authorhub-primary);
    animation: authorhub-spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes authorhub-spin {
    to { transform: rotate(360deg); }
}

/* Error States */
.authorhub-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: var(--authorhub-radius);
    padding: 20px;
    color: #c53030;
    text-align: center;
    margin: 20px 0;
}

.authorhub-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--authorhub-text-light);
}

.authorhub-no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Notices */
.authorhub-notice {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    border-left: 4px solid;
}

.authorhub-notice-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.authorhub-notice-success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.authorhub-notice-warning {
    background: #fff8e1;
    border-color: #ffc107;
    color: #f57c00;
}

.authorhub-notice-error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

/* Back to Top Button */
.authorhub-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--authorhub-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    cursor: pointer;
    z-index: 1000;
    transition: var(--authorhub-transition);
}

.authorhub-back-to-top:hover {
    background: #1e5a8a;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .authors-grid,
    .authorhub-books-grid,
    .authorhub-authors-grid {
        grid-template-columns: 1fr;
    }
    
    .author-header {
        flex-direction: column;
        text-align: center;
    }
    
    .author-header .author-info {
        text-align: center;
    }
    
    .author-social-links {
        justify-content: center;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .dashboard-actions .button {
        width: 100%;
    }
    
    .authorhub-book-hero {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }
    
    .authorhub-book-cover-large {
        width: 200px;
        height: 280px;
        margin: 0 auto;
    }
    
    .authorhub-search-row {
        flex-direction: column;
    }
    
    .authorhub-search-field {
        min-width: 100%;
    }
    
    .authorhub-book-actions-large {
        justify-content: center;
    }
    
    .authorhub-review-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .authorhub-book-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
    
    .authorhub-author-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .authorhub-book-actions {
        flex-direction: column;
    }
    
    .authorhub-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .authorhub-book-title-large {
        font-size: 1.8em;
    }
    
    .authorhub-average-rating {
        font-size: 2.5em;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --authorhub-text: #ffffff;
        --authorhub-text-light: #a0a0a0;
        --authorhub-border: #444;
        --authorhub-bg-light: #2a2a2a;
    }
    
    .authorhub-author-card,
    .authorhub-book-card,
    .authorhub-author-profile,
    .authorhub-book-details,
    .authorhub-search-filters,
    .stat-card,
    .book-item,
    .author-card {
        background: #1a1a1a;
        color: var(--authorhub-text);
        border-color: var(--authorhub-border);
    }
    
    .authorhub-search-input,
    .authorhub-filter-select {
        background: #2a2a2a;
        color: var(--authorhub-text);
        border-color: var(--authorhub-border);
    }
}

/* Print Styles */
@media print {
    .authorhub-author-actions,
    .authorhub-book-actions,
    .authorhub-book-actions-large,
    .authorhub-search-filters,
    .authorhub-pagination,
    .dashboard-actions,
    .author-social,
    .authorhub-author-social {
        display: none;
    }
    
    .authorhub-author-card,
    .authorhub-book-card,
    .stat-card,
    .book-item,
    .author-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .authorhub-book-hero {
        flex-direction: column;
    }
}

/* Additional Enhancement Styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy[src] {
    opacity: 1;
}

.authorhub-star-rating {
    display: inline-flex;
    gap: 2px;
}

.authorhub-star-rating .star {
    color: #ddd;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s ease;
}

.authorhub-star-rating .star:hover,
.authorhub-star-rating .star.active {
    color: #ffd700;
}

/* Taxonomy Management */
.authorhub-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.authorhub-taxonomy-card {
    background: #fff;
    border: 1px solid var(--authorhub-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--authorhub-shadow);
}

.authorhub-taxonomy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--authorhub-border);
}

.authorhub-taxonomy-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--authorhub-text);
    margin: 0;
}

.authorhub-taxonomy-count {
    background: var(--authorhub-bg-light);
    color: var(--authorhub-text-light);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.authorhub-taxonomy-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

/* assets/css/frontend.css */
/* AuthorHub Pro Frontend Styles */
.authorhub-frontend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.authorhub-author-profile {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.authorhub-author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.authorhub-author-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.authorhub-author-bio {
    color: #666;
    margin-bottom: 20px;
}

.authorhub-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.authorhub-book-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.authorhub-book-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.authorhub-book-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
}

.authorhub-book-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.authorhub-book-price {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.authorhub-add-to-cart {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.authorhub-add-to-cart:hover {
    background: #005a87;
    color: #fff;
}

.authorhub-registration-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.authorhub-form-group {
    margin-bottom: 20px;
}

.authorhub-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.authorhub-form-group input,
.authorhub-form-group textarea,
.authorhub-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.authorhub-form-group input:focus,
.authorhub-form-group textarea:focus,
.authorhub-form-group select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.authorhub-submit-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.authorhub-submit-button:hover {
    background: #005a87;
}

.authorhub-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.authorhub-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
}

.authorhub-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.authorhub-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .authorhub-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .authorhub-registration-form {
        margin: 10px;
        padding: 20px;
    }
}