/**
 * ============================================================================
 * BULLETIN BOARD STYLES
 * ============================================================================
 * 
 * File Path:        public/css/modules/bulletin-board.css
 * Version:          1.0.0
 * Created:          Thursday, December 26, 2025, 22:00 AEST
 * Last Modified:    Thursday, December 26, 2025, 22:00 AEST
 * 
 * Purpose:
 *   Styling for community bulletin board including notice cards, filters,
 *   search controls, modals, and responsive layouts. Provides visual hierarchy
 *   for notice types and manager controls.
 * 
 * Dependencies:
 *   - main.css (base styles)
 *   - components.css (shared components)
 * 
 * Version History:
 *   1.0.0 (2025-12-26) - Initial styles
 * 
 * ============================================================================
 */

/* ============================================================================
   BULLETIN BOARD CONTAINER
   ============================================================================ */
/* Remove semi-transparent overlay from parent containers */
body {
    background-attachment: fixed !important;
}

.bulletin-board-container,
.bulletin-board-container ~ *,
body > #app {
    background: transparent !important;
}
.bulletin-board-container {
    min-height: 100vh;
    background: transparent;
}
.bulletin-board-container .standard-header {
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
}
.bulletin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
/* Yellow back button on bulletin board screen */
.bulletin-board-container .header-back-btn {
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
    color: #000;
    border: none;
    box-shadow: 0 2px 8px rgba(253, 224, 71, 0.3);
}

.bulletin-board-container .header-back-btn:hover {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 224, 71, 0.4);
}
/* ============================================================================
   CONTINUE SECTION - UPDATED FOR BETTER CONTRAST
   ============================================================================ */

.continue-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.continue-section h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #667eea;
    background: white;
    border: 3px solid white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-continue:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #f8f9ff;
}

.btn-continue:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.btn-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.continue-hint {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================================================
   SEARCH & FILTER BAR
   ============================================================================ */

.search-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

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

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #94a3b8;
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: #cbd5e1;
}

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

/* ============================================================================
   SECTIONS
   ============================================================================ */

.pinned-section,
.recent-section {
    margin-bottom: 2rem;
    background: transparent;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.section-count {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.notices-list {
    display: grid;
    gap: 1.5rem;
}
/* ============================================================================
   SINGLE-LINE NOTICE ITEMS (NEW LAYOUT)
   ============================================================================ */

.notice-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.notice-item:hover {
    background: #f8fafc;
    border-left-color: #14b8a6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.notice-item.pinned {
    background: #fefce8;
}

/* Notice item badge - smaller for single line */
.notice-item .notice-badge {
    flex-shrink: 0;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
}

/* Notice item title */
.notice-item .notice-title {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Notice item date */
.notice-item .notice-date {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: #64748b;
    white-space: nowrap;
}

/* Notice item actions */
.notice-item .notice-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.25rem;
    border: none;
    padding: 0;
}

.notice-item .btn-icon {
    padding: 0.375rem;
    font-size: 1rem;
}

/* ============================================================================
   VIEW NOTICE MODAL
   ============================================================================ */

#viewNoticeModal .modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
    flex-wrap: wrap;
}

#viewNoticeModal .notice-content-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

#viewNoticeModal .notice-content-text br {
    margin-bottom: 0.5rem;
}

/* ============================================================================
   RESPONSIVE - SINGLE LINE
   ============================================================================ */

@media (max-width: 768px) {
    .notice-item {
        flex-wrap: wrap;
    }
    
    .notice-item .notice-title {
        white-space: normal;
        width: 100%;
        order: 2;
    }
    
    .notice-item .notice-badge {
        order: 1;
    }
    
    .notice-item .notice-date {
        order: 3;
    }
    
    .notice-item .notice-actions {
        order: 4;
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
}
/* ============================================================================
   NOTICE CARDS
   ============================================================================ */

.notice-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #cbd5e1;
    transition: all 0.2s;
}

.notice-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Notice type colors */
.notice-card.urgent,
.notice-item.urgent {
    border-left-color: #ef4444;
}

.notice-card.maintenance,
.notice-item.maintenance {
    border-left-color: #3b82f6;
}

.notice-card.noise,
.notice-item.noise {
    border-left-color: #f59e0b;
}

.notice-card.reminder,
.notice-item.reminder {
    border-left-color: #fbbf24;
}

.notice-card.info,
.notice-item.info {
    border-left-color: #06b6d4;
}

.notice-card.event,
.notice-item.event {
    border-left-color: #8b5cf6;
}

.notice-card.pinned {
    background: linear-gradient(to bottom, #fefce8 0%, white 100%);
}

/* Notice header */
.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    white-space: nowrap;
}

.notice-badge.urgent {
    background: #fee2e2;
    color: #991b1b;
}

.notice-badge.maintenance {
    background: #dbeafe;
    color: #1e40af;
}

.notice-badge.noise {
    background: #fed7aa;
    color: #9a3412;
}

.notice-badge.reminder {
    background: #fef3c7;
    color: #92400e;
}

.notice-badge.info {
    background: #cffafe;
    color: #164e63;
}

.notice-badge.event {
    background: #ede9fe;
    color: #6b21a8;
}

.notice-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

/* Notice body */
.notice-body {
    margin-bottom: 1rem;
}

.notice-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.notice-content {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #475569;
}

/* Notice actions */
.notice-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.btn-icon {
    padding: 0.5rem;
    font-size: 1.125rem;
    background: #f1f5f9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

.btn-icon-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    color: #64748b;
    margin: 0.5rem 0;
}

/* ============================================================================
   LOADING STATE
   ============================================================================ */

.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: #64748b;
    font-size: 0.875rem;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
}

.page-info {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* ============================================================================
   MODALS
   ============================================================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.modal-small {
    max-width: 400px;
}

.modal-medium {
    max-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.modal-body {
    padding: 1.5rem;
}

.modal-form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: " *";
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

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

.form-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.375rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

.form-checkbox span {
    font-size: 0.9375rem;
    color: #1e293b;
}

.text-warning {
    color: #f59e0b;
    font-weight: 500;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover:not(:disabled) {
    background: #cbd5e1;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

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

@media (max-width: 768px) {
    .bulletin-content {
        padding: 1rem;
    }

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

    .filter-controls {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .continue-section {
        padding: 1.5rem 1rem;
    }

    .btn-continue {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .notice-actions {
        flex-wrap: wrap;
    }

    .modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
}
/**
 * HEADER CONTINUE BUTTON - YELLOW/GOLD
 * ADD to bulletin-board.css or standard-header.css
 */

.header-btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(253, 224, 71, 0.3);
    white-space: nowrap;
}

.header-btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 224, 71, 0.4);
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
}

.header-btn-continue:active {
    transform: translateY(0);
}

/* Ensure header actions stack vertically on bulletin board */
.bulletin-board-container .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
/* ============================================================================
   END OF STYLES
   ============================================================================ */
