/* AuthorHub Pro Shortcodes CSS */

/* Author Grid Shortcode */
.authorhub-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.authorhub-author-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.authorhub-author-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.authorhub-author-avatar {
    margin-bottom: 15px;
}

.authorhub-author-avatar img {
    border-radius: 50%;
    border: 3px solid #ddd;
    transition: border-color 0.3s ease;
}

.authorhub-author-card:hover .authorhub-author-avatar img {
    border-color: #0073aa;
}

.authorhub-author-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #1e1e1e;
}

.authorhub-author-name a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.authorhub-author-name a:hover {
    color: #0073aa;
}

.authorhub-author-bio {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.authorhub-author-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 12px;
    color: #999;
}

.authorhub-author-stat {
    text-align: center;
}

.authorhub-author-stat strong {
    display: block;
    font-size: 16px;
    color: #333;
}

.authorhub-view-profile-btn {
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.authorhub-view-profile-btn:hover {
    background: #005177;
    color: white;
    text-decoration: none;
}

/* Book Grid Shortcode */
.authorhub-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.authorhub-book-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.authorhub-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.authorhub-book-cover {
    position: relative;
    overflow: hidden;
}

.authorhub-book-cover img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.authorhub-book-card:hover .authorhub-book-cover img {
    transform: scale(1.05);
}

.authorhub-book-info {
    padding: 15px;
}

.authorhub-book-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #1e1e1e;
    line-height: 1.3;
}

.authorhub-book-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.authorhub-book-title a:hover {
    color: #0073aa;
}

.authorhub-book-author {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.authorhub-book-author a {
    color: #0073aa;
    text-decoration: none;
}

.authorhub-book-author a:hover {
    text-decoration: underline;
}

.authorhub-book-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.authorhub-book-price {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 10px;
}

.authorhub-book-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.authorhub-book-btn {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    text-align: center;
    min-width: 80px;
}

.authorhub-book-btn.primary {
    background: #0073aa;
    color: white;
}

.authorhub-book-btn.primary:hover {
    background: #005177;
    color: white;
    text-decoration: none;
}

.authorhub-book-btn.secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.authorhub-book-btn.secondary:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}

/* Dashboard Shortcode */
.authorhub-dashboard {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.authorhub-dashboard-header {
    background: #0073aa;
    color: white;
    padding: 20px;
    text-align: center;
}

.authorhub-dashboard-header h2 {
    margin: 0;
    color: white;
}

.authorhub-dashboard-content {
    padding: 20px;
}

.authorhub-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.authorhub-stat-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.authorhub-stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    display: block;
}

.authorhub-stat-label {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Profile Shortcode */
.authorhub-profile {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.authorhub-profile-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.authorhub-profile-avatar {
    flex-shrink: 0;
}

.authorhub-profile-avatar img {
    border-radius: 50%;
    border: 4px solid #ddd;
}

.authorhub-profile-info h1 {
    margin: 0 0 10px 0;
    color: #1e1e1e;
}

.authorhub-profile-bio {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.authorhub-profile-social {
    display: flex;
    gap: 15px;
}

.authorhub-social-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.authorhub-social-link:hover {
    color: #005177;
}

.authorhub-profile-books {
    margin-top: 30px;
}

.authorhub-profile-books h3 {
    color: #1e1e1e;
    margin-bottom: 20px;
}

/* Forms */
.authorhub-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.authorhub-form-group {
    margin-bottom: 20px;
}

.authorhub-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1e1e1e;
}

.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;
    transition: border-color 0.3s ease;
}

.authorhub-form-group input:focus,
.authorhub-form-group textarea:focus,
.authorhub-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.authorhub-form-submit {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.authorhub-form-submit:hover {
    background: #005177;
}

.authorhub-form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .authorhub-authors-grid,
    .authorhub-books-grid {
        grid-template-columns: 1fr;
    }
    
    .authorhub-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .authorhub-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .authorhub-book-actions {
        flex-direction: column;
    }
    
    .authorhub-book-btn {
        flex: none;
    }
}

/* Loading States */
.authorhub-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.authorhub-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: authorhub-spin 1s linear infinite;
}

@keyframes authorhub-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.authorhub-text-center { text-align: center; }
.authorhub-text-left { text-align: left; }
.authorhub-text-right { text-align: right; }
.authorhub-mb-0 { margin-bottom: 0; }
.authorhub-mb-10 { margin-bottom: 10px; }
.authorhub-mb-20 { margin-bottom: 20px; }
.authorhub-mt-0 { margin-top: 0; }
.authorhub-mt-10 { margin-top: 10px; }
.authorhub-mt-20 { margin-top: 20px; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .authorhub-author-card,
    .authorhub-book-card,
    .authorhub-dashboard,
    .authorhub-profile,
    .authorhub-form {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    
    .authorhub-author-name,
    .authorhub-book-title,
    .authorhub-profile h1,
    .authorhub-form-group label {
        color: #fff;
    }
    
    .authorhub-author-bio,
    .authorhub-book-excerpt,
    .authorhub-profile-bio {
        color: #ccc;
    }
    
    .authorhub-stat-box {
        background: #3d3d3d;
        border-color: #555;
    }
}