/**
 * BoxStory Blog Styles
 * Uses brand kit color variables from brand-kit-custom.css
 */
@import url('../../../webpages/css/brand-kit-custom.css');

/* ====================
   BLOG HEADERS
   ==================== */

/* Header styles moved to webpages/css/card-headers.css for consistency */

/* ====================
   BLOG CARDS
   ==================== */

/* Blog Form Card - extends .form-card from core/css/base_forms.css */

/* Blog Card */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    height: 12.5rem;
    object-fit: cover;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 0.9375rem;
    border-top: 0.0625rem solid var(--border-light);
}

/* Gradient Placeholder for Blog Cards */
.bg-gradient-blog {
    background: linear-gradient(135deg, var(--color-aqua) 0%, var(--color-navy) 100%);
}

/* ====================
   FILTERS & SEARCH
   ==================== */

.filter-btn-group .btn {
    border-radius: 1.25rem;
    margin: 0.3125rem;
}

.search-box {
    max-width: 37.5rem;
    margin: 0 auto;
}

/* ====================
   CHARACTER COUNTER
   ==================== */

.char-counter {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ====================
   BLOG IMAGES
   ==================== */

/* Generic Blog Card Image */
.blog-card-image {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: center;
}

/* Thumbnail Image */
.blog-thumbnail-image {
    max-width: 12.5rem;
}

/* Delete Confirmation Image */
.blog-delete-image {
    max-height: 12.5rem;
}

/* List View Image */
.blog-list-image {
    max-height: 9.375rem;
    width: 100%;
    object-fit: cover;
}

/* Grid View Image */
.blog-grid-image {
    height: 11.25rem;
    object-fit: cover;
}

/* Grid Placeholder */
.blog-grid-placeholder {
    height: 11.25rem;
}

/* Profile Bio Image */
.blog-profile-image {
    max-height: 18.75rem;
    width: 100%;
    object-fit: cover;
}

/* ====================
   DELETE CONFIRMATION
   ==================== */

/* delete-header styles moved to webpages/css/card-headers.css */

.delete-card {
    box-shadow: var(--shadow-md);
    border: 0.125rem solid var(--semantic-error);
    border-radius: 0.625rem;
}

.warning-icon {
    font-size: 4rem;
    color: var(--semantic-error);
    margin-bottom: 1.25rem;
}

.blog-preview {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 0.5rem;
    border-left: 0.25rem solid var(--semantic-error);
}

.danger-text {
    color: var(--semantic-error);
    font-weight: 600;
}

/* ====================
   MY BLOGS PAGE
   ==================== */

/* my-blogs-header styles moved to webpages/css/card-headers.css */

.blog-quota {
    background: rgba(255,255,255,0.2);
    padding: 0.9375rem 1.25rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.blog-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: var(--shadow-sm);
}

.blog-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.blog-status-badge {
    position: absolute;
    top: 0.9375rem;
    right: 0.9375rem;
}

.blog-stats {
    display: flex;
    gap: 0.9375rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ====================
   BLOG DETAIL PAGE
   ==================== */

.blog-detail-container {
    max-width: 50rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.blog-header {
    margin-bottom: 2rem;
}

.blog-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-meta-item i {
    color: var(--color-aqua, #66c7be);
}

.blog-author-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.375rem 0.75rem;
    border-radius: 3.125rem;
}

.blog-author-chip img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.blog-detail-header {
    background: linear-gradient(135deg, var(--color-aqua, #66c7be) 0%, var(--color-navy, #1a1a2e) 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2.5rem;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-image {
    width: 100%;
    max-height: 31.25rem;
    object-fit: cover;
    border-radius: 0.625rem;
    margin-bottom: 1.875rem;
}

.author-box {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 0.625rem;
    margin: 1.875rem 0;
}

.comment-box {
    border-left: 0.1875rem solid var(--color-aqua, #66c7be);
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.related-post-card {
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

/* ====================
   BLOG MANAGER PAGE
   ==================== */

.manager-header {
    background: linear-gradient(135deg, var(--color-aqua, #66c7be) 0%, var(--color-navy, #1a1a2e) 100%);
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 2.5rem;
}

.stats-row {
    display: flex;
    gap: 0.9375rem;
    margin-bottom: 1.875rem;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-aqua, #66c7be);
    margin-bottom: 0.3125rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.filter-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    margin-bottom: 1.25rem;
}

.table-actions {
    display: flex;
    gap: 0.3125rem;
}

.status-badge {
    padding: 0.25rem 0.625rem;
    border-radius: 1.25rem;
    font-size: 0.85rem;
    display: inline-block;
    min-width: 5rem;
}

.featured-star {
    color: #ffc107;
    cursor: pointer;
}

/* ====================
   USER BLOGS PAGE
   ==================== */

.user-blogs-header {
    background: linear-gradient(135deg, var(--color-aqua, #66c7be) 0%, var(--color-navy, #1a1a2e) 100%);
    color: white;
    padding: 3.125rem 0;
    margin-bottom: 2.5rem;
}

.user-profile-section {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5625rem;
    border-radius: 0.625rem;
    margin-bottom: 1.25rem;
}

.user-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-aqua, #66c7be);
    font-weight: bold;
}

.blog-type-filter {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.9375rem;
    border-radius: 0.5rem;
}

/* ====================
   RESPONSIVE
   ==================== */

.blog-author-chip .author-avatar-placeholder {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-aqua, #66c7be) 0%, #3e9b8f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-content blockquote {
    border-left: 0.1875rem solid var(--color-aqua, #66c7be);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f9fafb;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #4b5563;
}

.blog-content blockquote p {
    margin-bottom: 0;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 0.0625rem solid #e5e7eb;
}

.blog-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.375rem 0.875rem;
    border-radius: 3.125rem;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-tag:hover {
    background: var(--color-aqua, #66c7be);
    color: white;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.blog-back-link:hover {
    color: var(--color-aqua, #66c7be);
}

/* ====================
   RESPONSIVE
   ==================== */

@media (max-width: 48rem) {
    .stats-row {
        flex-direction: column;
    }

    .blog-title {
        font-size: 1.5rem;
    }

    .blog-detail-container {
        padding: 1rem;
    }
}
