/**
 * Bulletins/Announcements Styles
 *
 * Styles for bulletin/announcement pages including list layout,
 * card styles, date/time display, priority indicators, and read/unread states.
 *
 * @package Videohub360_Theme
 * @since 1.0.0
 */

/* ==========================================================================
   Bulletin List Layout
   ========================================================================== */

.vh360-bulletins-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 var(--spacing);
}

.vh360-bulletins-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==========================================================================
   Bulletin Card Styles
   ========================================================================== */

.vh360-bulletin-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.vh360-bulletin-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.vh360-bulletin-card.unread {
    border-left: 4px solid var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.vh360-bulletin-card.read {
    opacity: 0.8;
}

.vh360-bulletin-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==========================================================================
   Priority Indicators
   ========================================================================== */

.vh360-bulletin-priority {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vh360-bulletin-priority.high {
    background: #fee2e2;
    color: var(--error-color);
}

.vh360-bulletin-priority.medium {
    background: #fef3c7;
    color: var(--warning-color);
}

.vh360-bulletin-priority.low {
    background: #dbeafe;
    color: var(--primary-color);
}

.vh360-bulletin-priority.urgent {
    background: var(--error-color);
    color: #ffffff;
    animation: vh360-pulse 2s infinite;
}

@keyframes vh360-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ==========================================================================
   Bulletin Header
   ========================================================================== */

.vh360-bulletin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.vh360-bulletin-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.vh360-bulletin-icon.announcement {
    background: #dbeafe;
    color: var(--primary-color);
}

.vh360-bulletin-icon.alert {
    background: #fee2e2;
    color: var(--error-color);
}

.vh360-bulletin-icon.update {
    background: #d1fae5;
    color: var(--success-color);
}

.vh360-bulletin-icon.info {
    background: #e0e7ff;
    color: #6366f1;
}

.vh360-bulletin-content {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Bulletin Title
   ========================================================================== */

.vh360-bulletin-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.vh360-bulletin-card.unread .vh360-bulletin-title {
    color: var(--primary-color);
}

/* ==========================================================================
   Date/Time Display
   ========================================================================== */

.vh360-bulletin-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.vh360-bulletin-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vh360-bulletin-author {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vh360-bulletin-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.vh360-bulletin-category {
    padding: 0.125rem 0.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   Bulletin Excerpt
   ========================================================================== */

.vh360-bulletin-excerpt {
    font-size: 0.9375rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vh360-bulletin-excerpt p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Bulletin Footer
   ========================================================================== */

.vh360-bulletin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.vh360-bulletin-actions {
    display: flex;
    gap: 0.75rem;
}

.vh360-bulletin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.vh360-bulletin-btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
}

.vh360-bulletin-btn-primary:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

.vh360-bulletin-btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.vh360-bulletin-btn-secondary:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==========================================================================
   Read/Unread States
   ========================================================================== */

.vh360-bulletin-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vh360-bulletin-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.vh360-bulletin-status.unread .vh360-bulletin-status-indicator {
    background: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.vh360-bulletin-status.read .vh360-bulletin-status-indicator {
    background: var(--text-light);
}

/* ==========================================================================
   Single Bulletin Page
   ========================================================================== */

.vh360-single-bulletin-page {
    background: var(--bg-light, #f9fafb);
}

.vh360-bulletin-back {
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 1rem var(--spacing, 1rem);
}

.vh360-bulletin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.5rem;
    color: var(--text-color, #1f2937);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.vh360-bulletin-back-link:hover {
    border-color: var(--primary-color, #3b82f6);
    color: var(--primary-color, #3b82f6);
    transform: translateX(-2px);
}

.vh360-bulletin-single {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 var(--spacing, 1rem);
}

.vh360-bulletin-single-header {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vh360-bulletin-single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.vh360-bulletin-priority-badge-large {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.vh360-bulletin-unread-indicator-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--primary-color, #3b82f6);
    color: white;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.vh360-bulletin-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: var(--text-color, #1f2937);
    line-height: 1.2;
}

.vh360-bulletin-single-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.9375rem;
    color: var(--text-light, #6b7280);
}

.vh360-bulletin-single-date,
.vh360-bulletin-single-author,
.vh360-bulletin-single-expiry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vh360-bulletin-single-date svg,
.vh360-bulletin-single-author svg,
.vh360-bulletin-single-expiry svg {
    flex-shrink: 0;
}

/* Featured Image Container */
.vh360-bulletin-single-thumbnail {
    max-width: 1200px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vh360-bulletin-single-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Content Section */
.vh360-bulletin-single-content {
    background: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color, #374151);
}

.vh360-bulletin-single-content p {
    margin-bottom: 1.5rem;
}

.vh360-bulletin-single-content p:last-child {
    margin-bottom: 0;
}

.vh360-bulletin-single-content h2,
.vh360-bulletin-single-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-color, #1f2937);
    font-weight: 700;
}

.vh360-bulletin-single-content h2 {
    font-size: 1.875rem;
    line-height: 1.3;
}

.vh360-bulletin-single-content h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.vh360-bulletin-single-content ul,
.vh360-bulletin-single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.vh360-bulletin-single-content li {
    margin-bottom: 0.5rem;
}

.vh360-bulletin-single-content a {
    color: var(--primary-color, #3b82f6);
    text-decoration: underline;
}

.vh360-bulletin-single-content a:hover {
    color: var(--primary-dark, #2563eb);
}

.vh360-bulletin-single-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color, #3b82f6);
    background: var(--bg-light, #f9fafb);
    border-radius: 0.5rem;
}

.vh360-bulletin-single-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Actions Section */
.vh360-bulletin-single-actions {
    background: white;
    padding: 1.5rem 2.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.vh360-bulletin-mark-read,
.vh360-bulletin-dismiss {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.vh360-btn-primary {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.vh360-btn-primary:hover {
    background: var(--primary-dark, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.vh360-btn-secondary {
    background: white;
    color: var(--text-color, #1f2937);
    border: 1px solid var(--border-color, #e5e7eb);
}

.vh360-btn-secondary:hover {
    background: var(--bg-light, #f9fafb);
    border-color: var(--primary-color, #3b82f6);
    color: var(--primary-color, #3b82f6);
}

/* Share Section */
.vh360-bulletin-single-share {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vh360-bulletin-share-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--text-color, #1f2937);
}

.vh360-bulletin-share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.vh360-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-color, #e5e7eb);
    background: white;
    color: var(--text-color, #1f2937);
}

.vh360-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vh360-share-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.vh360-share-facebook:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.vh360-share-linkedin:hover {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

.vh360-share-copy:hover {
    background: var(--primary-color, #3b82f6);
    color: white;
    border-color: var(--primary-color, #3b82f6);
}

/* ==========================================================================
   Bulletin Filters
   ========================================================================== */

.vh360-bulletin-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vh360-bulletin-filter {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.vh360-bulletin-filter:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vh360-bulletin-filter.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.vh360-bulletins-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.vh360-bulletins-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    opacity: 0.5;
}

.vh360-bulletins-empty-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.vh360-bulletins-empty-text {
    color: var(--text-light);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .vh360-bulletins-container,
    .vh360-bulletin-single {
        padding: 0 1rem;
    }
    
    .vh360-bulletin-card {
        padding: 1rem;
    }
    
    .vh360-bulletin-header {
        flex-direction: column;
    }
    
    .vh360-bulletin-priority {
        position: static;
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .vh360-bulletin-title {
        font-size: 1.125rem;
    }
    
    /* Single Bulletin Responsive */
    .vh360-bulletin-single-header {
        padding: 1.5rem;
    }
    
    .vh360-bulletin-single-title {
        font-size: 1.875rem;
    }
    
    .vh360-bulletin-single-info {
        gap: 1rem;
    }
    
    .vh360-bulletin-single-thumbnail img {
        max-height: 300px;
    }
    
    .vh360-bulletin-single-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .vh360-bulletin-single-content h2 {
        font-size: 1.5rem;
    }
    
    .vh360-bulletin-single-content h3 {
        font-size: 1.25rem;
    }
    
    .vh360-bulletin-single-actions {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
    }
    
    .vh360-bulletin-mark-read,
    .vh360-bulletin-dismiss {
        width: 100%;
        justify-content: center;
    }
    
    .vh360-bulletin-single-share {
        padding: 1.5rem;
    }
    
    .vh360-bulletin-share-buttons {
        flex-direction: column;
    }
    
    .vh360-share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .vh360-bulletin-meta,
    .vh360-bulletin-single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .vh360-bulletin-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .vh360-bulletin-actions {
        width: 100%;
    }
    
    .vh360-bulletin-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .vh360-bulletin-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .vh360-bulletin-filters {
        gap: 0.5rem;
    }
    
    .vh360-bulletin-filter {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* Single Bulletin Mobile */
    .vh360-bulletin-back {
        padding: 0.75rem 0.75rem;
    }
    
    .vh360-bulletin-single-header {
        padding: 1.25rem;
    }
    
    .vh360-bulletin-single-title {
        font-size: 1.5rem;
    }
    
    .vh360-bulletin-single-content {
        padding: 1.25rem;
        font-size: 0.9375rem;
    }
    
    .vh360-bulletin-single-actions,
    .vh360-bulletin-single-share {
        padding: 1.25rem;
    }
}

/* ==========================================================================
   Bulletin Card Actions & Edit Link
   ========================================================================== */

.vh360-bulletin-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vh360-bulletin-view-link,
.vh360-bulletin-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.vh360-bulletin-view-link {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.vh360-bulletin-view-link:hover {
    background: var(--primary-dark, #2563eb);
    transform: translateY(-1px);
}

.vh360-bulletin-edit-link {
    background: var(--bg-light, #f3f4f6);
    color: var(--text-color, #1f2937);
    border: 1px solid var(--border-color, #e5e7eb);
}

.vh360-bulletin-edit-link:hover {
    background: white;
    border-color: var(--primary-color, #3b82f6);
    color: var(--primary-color, #3b82f6);
}

/* Priority Indicator Bar for Cards */
.vh360-bulletin-priority-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.vh360-bulletin-card {
    position: relative;
    padding-left: 1.5rem;
}

/* Priority Badge Styling */
.vh360-bulletin-priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

/* Unread Indicator */
.vh360-bulletin-unread-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color, #3b82f6);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Bulletin Header Actions */
.vh360-bulletin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.vh360-bulletin-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Dismiss Button */
.vh360-bulletin-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 50%;
    color: var(--text-light, #6b7280);
    cursor: pointer;
    transition: all 0.2s;
}

.vh360-bulletin-dismiss:hover {
    background: var(--bg-light, #f3f4f6);
    border-color: var(--danger-color, #ef4444);
    color: var(--danger-color, #ef4444);
}

/* Bulletin Footer */
.vh360-bulletin-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.875rem;
    color: var(--text-light, #6b7280);
}

.vh360-bulletin-date,
.vh360-bulletin-expiry {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Bulletin Title */
.vh360-bulletin-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.vh360-bulletin-title a {
    color: var(--text-color, #1f2937);
    text-decoration: none;
    transition: color 0.2s;
}

.vh360-bulletin-title a:hover {
    color: var(--primary-color, #3b82f6);
}

/* Bulletin Excerpt */
.vh360-bulletin-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-color, #4b5563);
    margin: 0;
}

.vh360-bulletin-excerpt p {
    margin: 0 0 0.5rem;
}

.vh360-bulletin-excerpt p:last-child {
    margin-bottom: 0;
}

/* Compact Card Variant */
.vh360-bulletin-compact {
    padding: 1rem;
}

.vh360-bulletin-compact .vh360-bulletin-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.vh360-bulletin-compact .vh360-bulletin-footer {
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

/* Card Content Wrapper */
.vh360-bulletin-content {
    padding-left: 0.5rem;
}
