/**
 * Literary Space - Frontend Styles
 */

/* General Styles */
.literary-wrapper,
.literary-dashboard-wrapper,
.literary-books-wrapper,
.literary-add-book-wrapper,
.literary-edit-profile-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.literary-profile-wrapper {
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Profile Styles */
.literary-profile-cover {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.literary-profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.literary-profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.literary-profile-info {
    flex: 1;
}

.literary-profile-name {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #333;
}

.literary-profile-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.literary-profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.literary-profile-section {
    margin-bottom: 30px;
}

.literary-profile-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* Profile Stats Section */
.literary-profile-stats {
    margin-bottom: 40px;
}

/* Books Section */
.literary-books-section {
    margin-top: 40px;
}

.literary-books-section h2,
.literary-books-header h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.literary-reading-stats h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Tags */
.literary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.literary-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
}

.literary-tag-remove {
    margin-left: 6px;
    cursor: pointer;
    color: #999;
    font-weight: bold;
}

.literary-tag-remove:hover {
    color: #d63638;
}

/* Social Links Icons */
.literary-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.literary-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.literary-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff !important;
    text-decoration: none !important;
}

.literary-social-link .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #fff !important;
}

/* Platform-specific colors */
.literary-social-facebook { background: #1877f2; }
.literary-social-facebook:hover { background: #0c5ecc; }
.literary-social-twitter { background: #000000; }
.literary-social-twitter:hover { background: #1a1a1a; }
.literary-social-instagram { background: #e4405f; }
.literary-social-instagram:hover { background: #d02a4a; }
.literary-social-linkedin { background: #0077b5; }
.literary-social-linkedin:hover { background: #006097; }
.literary-social-youtube { background: #ff0000; }
.literary-social-youtube:hover { background: #cc0000; }
.literary-social-tiktok { background: #000000; }
.literary-social-tiktok:hover { background: #333333; }
.literary-social-goodreads { background: #553b08; }
.literary-social-goodreads:hover { background: #3d2a06; }

/* Custom icons for Twitter/X and TikTok */
.literary-social-twitter .dashicons::before {
    content: "𝕏" !important;
    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.literary-social-tiktok .dashicons::before {
    content: "♪" !important;
    font-family: Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: bold !important;
}

/* Books Grid */
.literary-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Empty State */
.literary-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.literary-empty-state .literary-empty-message {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.literary-empty-state .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.literary-book-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.literary-book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.literary-book-cover {
    position: relative;
    width: 100%;
    height: 280px;
    background: #f5f5f5;
    overflow: hidden;
}

.literary-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.literary-book-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.literary-book-placeholder .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
}

.literary-favorite-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff9800;
    color: #fff;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.literary-times-read-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(103, 126, 234, 0.95);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

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

.literary-book-title {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* Status Badges */
.literary-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.literary-status-to_read {
    background: #e3f2fd;
    color: #1976d2;
}

.literary-status-reading {
    background: #fff3e0;
    color: #f57c00;
}

.literary-status-completed {
    background: #e8f5e9;
    color: #388e3c;
}

.literary-status-favorite,
.literary-status-favorites {
    background: #fce4ec;
    color: #c2185b;
}

.literary-status-abandoned {
    background: #f5f5f5;
    color: #757575;
}

/* Progress Bar */
.literary-progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin: 6px 0;
}

.literary-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.literary-progress-text {
    font-size: 10px;
    color: #666;
    margin: 3px 0 0 0;
}

/* Status Selector and Display */
.literary-status-select-wrapper,
.literary-book-status-display {
    margin: 10px 0;
}

.literary-status-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.literary-status-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.literary-book-status-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Current Page Input */
.literary-current-page-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0;
    font-size: 11px;
}

.literary-current-page-wrapper label {
    font-weight: 600;
    color: #666;
    font-size: 11px;
}

.literary-current-page-input {
    width: 50px;
    padding: 10px 1px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 11px;
    text-align: center;
    color: #333 !important;
    background-color: #fff !important;
}

/* Force visibility for number input */
.literary-current-page-wrapper input[type="number"] {
    padding: 10px 1px !important;
    color: #333 !important;
    background-color: #fff !important;
    -webkit-text-fill-color: #333 !important;
    opacity: 1 !important;
}

.literary-current-page-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.literary-page-total {
    color: #999;
    font-weight: 600;
    font-size: 11px;
}

/* Summary File Upload */
.literary-file-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s;
}

.literary-file-input:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.literary-file-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Summary Download Button (in actions) */
.literary-btn-download {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #666666 !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    text-decoration: none !important;
    min-width: 32px !important;
    min-height: 32px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    position: relative;
}

.literary-btn-download:hover {
    border-color: #667eea !important;
    background: #667eea !important;
    background-color: #667eea !important;
    color: #ffffff !important;
}

.literary-btn-download .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: inherit !important;
    line-height: 16px !important;
}

/* Tooltip on hover */
.literary-btn-download:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #333;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    z-index: 1000;
    pointer-events: none;
}

.literary-btn-download:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 4px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    pointer-events: none;
}

/* Summary File Download Link (in edit form) */
.literary-summary-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    border: none !important;
}

.literary-summary-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.literary-summary-link:active {
    transform: translateY(0) !important;
}

.literary-summary-link:visited {
    color: #ffffff !important;
}

.literary-summary-link:link {
    color: #ffffff !important;
}

/* Ensure all text and elements inside the link are white */
.literary-summary-link * {
    color: #ffffff !important;
}

.literary-summary-link span {
    color: #ffffff !important;
}

.literary-summary-link .dashicons {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    color: #ffffff !important;
}

.literary-summary-download {
    margin-bottom: 15px !important;
}

/* Book Card Actions */
.literary-book-actions {
    display: flex !important;
    gap: 8px !important;
    padding: 0 15px 15px 15px !important;
    justify-content: flex-end !important;
}

/* Multiple selectors for maximum specificity - works for all user roles */
.literary-book-card .literary-book-actions .literary-btn-edit,
.literary-book-card .literary-book-actions .literary-btn-delete,
.literary-book-card .literary-book-actions button.literary-btn-edit,
.literary-book-card .literary-book-actions button.literary-btn-delete,
button.literary-btn-edit,
button.literary-btn-delete,
.literary-btn-edit,
.literary-btn-delete {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #666666 !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    text-decoration: none !important;
    min-width: 32px !important;
    min-height: 32px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.literary-book-card .literary-book-actions .literary-btn-edit:hover,
.literary-book-card .literary-book-actions button.literary-btn-edit:hover,
button.literary-btn-edit:hover,
.literary-btn-edit:hover {
    border-color: #667eea !important;
    background: #667eea !important;
    background-color: #667eea !important;
    color: #ffffff !important;
}

.literary-book-card .literary-book-actions .literary-btn-delete:hover,
.literary-book-card .literary-book-actions button.literary-btn-delete:hover,
button.literary-btn-delete:hover,
.literary-btn-delete:hover {
    border-color: #d63638 !important;
    background: #d63638 !important;
    background-color: #d63638 !important;
    color: #ffffff !important;
}

.literary-book-card .literary-book-actions .literary-btn-edit .dashicons,
.literary-book-card .literary-book-actions .literary-btn-delete .dashicons,
.literary-btn-edit .dashicons,
.literary-btn-delete .dashicons {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    color: inherit !important;
    line-height: 16px !important;
}

/* Members Directory */
.literary-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.literary-profile-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    padding: 20px;
    text-align: center;
}

.literary-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.literary-profile-card-avatar {
    margin-bottom: 15px;
}

.literary-profile-card-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.literary-profile-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.literary-profile-card-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.literary-profile-card-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.literary-profile-card .button {
    display: inline-block;
    width: auto;
}

/* Reading Stats */
.literary-reading-stats {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.literary-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.literary-stat-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.literary-stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.literary-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
}

/* Forms */
.literary-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.literary-form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.literary-form-section:last-child {
    border-bottom: none;
}

.literary-form-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

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

.literary-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.literary-form-group input[type="text"],
.literary-form-group input[type="email"],
.literary-form-group input[type="url"],
.literary-form-group input[type="number"],
.literary-form-group select,
.literary-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.literary-form-group input[type="text"]:focus,
.literary-form-group input[type="email"]:focus,
.literary-form-group input[type="url"]:focus,
.literary-form-group input[type="number"]:focus,
.literary-form-group select:focus,
.literary-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.literary-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.literary-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.literary-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

/* Profile Image Uploads */
.literary-avatar-upload,
.literary-cover-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.literary-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.literary-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.literary-cover-preview {
    width: 100%;
    max-width: 400px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    margin-bottom: 10px;
}

.literary-book-cover-preview {
    width: 150px;
    height: 225px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.literary-book-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.literary-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
    padding: 20px;
}

.literary-cover-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.literary-cover-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* Messages */
.literary-privacy-notice,
.literary-login-message {
    padding: 15px 20px;
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    border-radius: 4px;
    margin-bottom: 20px;
}

#literary-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#literary-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

#literary-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

/* Filters */
.literary-books-filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.literary-filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
}

.literary-filter-btn:hover,
.literary-filter-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
}

/* Authentication Forms */
.literary-auth-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.literary-auth-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.literary-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.literary-auth-header h2,
.literary-auth-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

/* Password Field with Toggle */
.literary-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.literary-password-field input[type="password"],
.literary-password-field input[type="text"] {
    flex: 1;
    padding-right: 45px;
}

.literary-password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: transparent;
    border: 1px solid #ffffff;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #667eea;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
}

.literary-password-toggle:hover {
    color: #ffffff;
    background: #667eea;
    border: 1px solid #667eea;
}

.literary-password-toggle:focus {
    outline: none;
    color: #ffffff;
    background: #667eea;
    border: 1px solid #667eea;
}

.literary-password-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.literary-auth-header p {
    color: #666;
    margin: 0;
}

.literary-auth-form .literary-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.literary-auth-form .literary-form-group label .dashicons {
    color: #667eea;
}

.literary-form-checkbox label {
    font-weight: normal;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
    color: #666;
}

.literary-form-checkbox input[type="checkbox"] {
    margin-top: -15px;
    flex-shrink: 0;
}

.literary-checkbox-text {
    display: inline;
    max-width: 100%;
}

.literary-auth-form .literary-form-checkbox label a,
.literary-form-checkbox label a {
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline;
}

.literary-auth-form .literary-form-checkbox label a:hover,
.literary-form-checkbox label a:hover {
    text-decoration: underline !important;
}

.button-block {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 20px;
    line-height: 1.4;
}

.literary-auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.literary-auth-footer p {
    margin: 10px 0;
    color: #666;
}

.literary-auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.literary-auth-footer a:hover {
    text-decoration: underline;
}

.literary-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.literary-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
    display: block;
}

.literary-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
    display: block;
}

.literary-already-logged-in,
.literary-registration-disabled {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

/* Dashboard Actions */
.literary-dashboard-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.literary-dashboard-actions .button {
    flex: 1;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
}

.literary-dashboard-actions .button-logout {
    background: #fff;
    border: 2px solid #d63638;
    color: #d63638;
}

.literary-dashboard-actions .button-logout:hover {
    background: #d63638;
    color: #fff;
}

/* Dashboard Sections */
.literary-dashboard-header {
    margin-bottom: 30px;
}

.literary-dashboard-stats {
    margin-bottom: 40px;
}

.literary-dashboard-section {
    margin-bottom: 40px;
}

.literary-dashboard-section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Dashboard Quick Stats */
.literary-quick-stats {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}

.literary-quick-stat {
    flex: 1;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.literary-quick-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.literary-stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.literary-stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Members Directory Search and Filter */
.literary-members-filters {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.literary-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.literary-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.literary-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.literary-search-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 24px;
    white-space: nowrap;
}

.literary-search-btn .dashicons {
    font-size: 16px;
    height: 16px;
    width: 16px;
}

.literary-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.literary-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.literary-filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.literary-filter-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 180px;
    background: #fff;
}

.literary-filter-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.literary-clear-filters {
    padding: 10px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .literary-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .literary-profile-content {
        grid-template-columns: 1fr;
    }

    .literary-books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .literary-form-row {
        grid-template-columns: 1fr;
    }

    .literary-auth-wrapper {
        margin: 20px auto;
        padding: 15px;
    }

    .literary-auth-container {
        padding: 30px 25px;
    }

    /* Stack forgot password form buttons vertically on mobile */
    #literary-forgot-password-form .literary-form-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #literary-forgot-password-form .literary-form-actions .button {
        width: 100%;
        max-width: 100%;
    }

    .literary-search-bar {
        flex-direction: column;
    }

    .literary-filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .literary-filter-select {
        width: 100%;
    }
}

/* ==========================================================================
   Google Books Search
   ========================================================================== */

.literary-google-books-search {
    background: #f8f9fa;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.literary-google-books-search h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 18px;
}

.literary-google-books-search h3 .dashicons {
    color: #667eea;
}

.literary-google-books-search .description {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
}

.literary-search-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.literary-search-wrapper .literary-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
}

.literary-search-wrapper .literary-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.literary-search-wrapper button {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Google Books Results */
.literary-google-results {
    margin-top: 20px;
}

.literary-books-results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.literary-book-result {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: box-shadow 0.2s;
}

.literary-book-result:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.literary-book-result-content {
    display: flex;
    gap: 15px;
    flex: 1;
}

.literary-book-result-thumbnail {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.literary-book-result-info {
    flex: 1;
}

.literary-book-result-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #111827;
}

.literary-book-result-authors {
    margin: 0 0 8px 0;
    color: #667eea;
    font-weight: 500;
    font-size: 14px;
}

.literary-book-result-description {
    margin: 0 0 8px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.literary-book-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.literary-book-result-meta span {
    display: inline-block;
}

.literary-use-book-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.literary-use-book-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Loading and Messages */
.literary-loading,
.literary-no-results,
.literary-error {
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
}

.literary-loading {
    background: #eff6ff;
    color: #1e40af;
}

.literary-no-results {
    background: #fef3c7;
    color: #92400e;
}

.literary-error {
    background: #fee2e2;
    color: #991b1b;
}

.literary-success-message {
    padding: 15px 20px;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.literary-success-message .dashicons {
    color: #059669;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .literary-book-result {
        flex-direction: column;
        align-items: stretch;
    }

    .literary-book-result-content {
        flex-direction: column;
    }

    .literary-book-result-thumbnail {
        width: 100%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }

    .literary-use-book-btn {
        width: 100%;
        justify-content: center;
    }

    .literary-search-wrapper {
        flex-direction: column;
    }

    .literary-search-wrapper button {
        width: 100%;
        justify-content: center;
    }
}
