/* Notification Center - Frontend Styles */
/* Design System: Ski Patrol Organization Theme */

:root {
  --nc-primary: #3b2f8d;
  --nc-primary-dark: #2d2470;
  --nc-secondary: #cb2027;
  --nc-secondary-dark: #a81a20;
  --nc-background: #ffffff;
  --nc-text: #333;
  --nc-text-light: #646970;
  --nc-text-muted: #8c8f94;
  --nc-border: #dcdcde;
  --nc-border-light: #f0f0f1;
  --nc-white: #fff;
}

* {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Notification Center Component */
.nc-notification-center {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.nc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--nc-primary);
}

.nc-header h2 {
    margin: 0;
    color: var(--nc-primary);
    font-size: 28px;
    font-weight: 700;
}

.nc-badge-unread {
    background: var(--nc-secondary);
    color: var(--nc-white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Filters */
.nc-filters-frontend {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nc-filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--nc-border);
    background: var(--nc-white);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--nc-text);
}

.nc-filter-btn:hover {
    background: var(--nc-border-light);
    border-color: var(--nc-primary);
}

.nc-filter-btn.active {
    background: var(--nc-primary);
    color: var(--nc-white);
    border-color: var(--nc-primary);
}

/* Notifications List */
.nc-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nc-notification-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: var(--nc-white);
    border: 1px solid var(--nc-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.nc-notification-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.nc-notification-item.nc-unread {
    background: #f0eef9;
    border-left: 4px solid var(--nc-primary);
}

.nc-notification-icon {
    font-size: 32px;
    margin-right: 15px;
    flex-shrink: 0;
}

.nc-notification-content {
    flex: 1;
}

.nc-notification-content h4 {
    margin: 0 0 8px;
    color: var(--nc-primary);
    font-size: 18px;
    font-weight: 600;
}

.nc-notification-content p {
    margin: 0 0 8px;
    color: var(--nc-text-light);
    line-height: 1.6;
}

.nc-notification-content small {
    color: var(--nc-text-muted);
    font-size: 13px;
}

.nc-mark-read {
    padding: 10px 18px;
    background: var(--nc-primary);
    color: var(--nc-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nc-mark-read:hover {
    background: var(--nc-secondary);
    transform: translateY(-2px);
}

/* Bulletin Board Component */
.nc-bulletin-board-frontend {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
}

.nc-bb-header {
    margin-bottom: 30px;
}

.nc-bb-header h2 {
    margin: 0 0 20px;
    color: var(--nc-primary);
    font-size: 32px;
    font-weight: 700;
}

.nc-bb-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nc-cat-btn {
    padding: 10px 20px;
    border: 2px solid var(--nc-border);
    background: var(--nc-white);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--nc-text);
}

.nc-cat-btn:hover {
    background: var(--nc-border-light);
    border-color: var(--nc-primary);
}

.nc-cat-btn.active {
    background: var(--nc-primary);
    color: var(--nc-white);
    border-color: var(--nc-primary);
}

/* Bulletins Grid */
.nc-bulletins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.nc-bulletin-card {
    background: var(--nc-white);
    border: 1px solid var(--nc-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nc-bulletin-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.nc-bulletin-card.nc-priority-urgent {
    border-left: 5px solid var(--nc-secondary);
}

.nc-bulletin-card.nc-priority-high {
    border-left: 5px solid #f0b849;
}

.nc-urgent-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--nc-secondary);
    color: var(--nc-white);
    padding: 8px 15px;
    border-radius: 0 12px 0 12px;
    font-size: 12px;
    font-weight: 700;
}

.nc-high-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f0b849;
    color: #000;
    padding: 8px 15px;
    border-radius: 0 12px 0 12px;
    font-size: 12px;
    font-weight: 700;
}

.nc-bulletin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nc-category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--nc-white);
}

.nc-cat-general {
    background: var(--nc-primary);
}

.nc-cat-important {
    background: var(--nc-secondary);
}

.nc-cat-events {
    background: #00a32a;
}

.nc-cat-news {
    background: #826eb4;
}

.nc-cat-maintenance {
    background: #f0b849;
}

.nc-bulletin-date {
    color: var(--nc-text-muted);
    font-size: 13px;
}

.nc-bulletin-title {
    margin: 0 0 15px;
    color: var(--nc-primary);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}

.nc-bulletin-excerpt {
    color: var(--nc-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.nc-author {
    color: var(--nc-text-muted);
    font-size: 13px;
}

.nc-view-bulletin-btn {
    background: var(--nc-primary);
    color: var(--nc-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nc-view-bulletin-btn:hover {
    background: var(--nc-secondary);
    transform: translateY(-2px);
}

/* Empty State */
.nc-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.nc-empty-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.nc-empty-state h3 {
    color: var(--nc-primary);
    margin: 0 0 10px;
    font-weight: 700;
}

.nc-empty-state p {
    color: var(--nc-text-light);
    margin: 0;
}

/* Modal */
.nc-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc-modal-content {
    background-color: var(--nc-white);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.nc-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--nc-text-light);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nc-modal-close:hover {
    background: var(--nc-border-light);
    color: var(--nc-primary);
}

/* Load More */
.nc-load-more {
    text-align: center;
    margin-top: 30px;
}

.nc-load-more-btn {
    padding: 15px 30px;
    background: var(--nc-primary);
    color: var(--nc-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nc-load-more-btn:hover {
    background: var(--nc-secondary);
    transform: translateY(-2px);
}

/* Login Required */
.nc-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    color: var(--nc-text-light);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .nc-notification-center,
    .nc-bulletin-board-frontend {
        padding: 15px;
    }
    
    .nc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .nc-bulletins-grid {
        grid-template-columns: 1fr;
    }
    
    .nc-notification-item {
        flex-direction: column;
    }
    
    .nc-notification-icon {
        margin-bottom: 10px;
    }
    
    .nc-mark-read {
        width: 100%;
        margin-top: 10px;
    }
    
    .nc-bulletin-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .nc-view-bulletin-btn {
        width: 100%;
    }
    
    .nc-modal-content {
        padding: 25px;
        width: 95%;
        border-radius: 12px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nc-notification-item,
.nc-bulletin-card {
    animation: slideIn 0.4s ease-out;
}

/* Loading State */
.nc-loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--nc-text-light);
}

.nc-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--nc-border-light);
    border-radius: 50%;
    border-top-color: var(--nc-primary);
    animation: spin 1s linear infinite;
}

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

/* Additional Hero-style Elements */
.nc-hero-section {
    background-color: var(--nc-primary);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    color: var(--nc-white);
}

.nc-hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.nc-hero-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.nc-hero-btn {
    display: inline-block;
    background: var(--nc-white);
    color: var(--nc-primary);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-top: 20px;
}

.nc-hero-btn:hover {
    background: var(--nc-secondary);
    color: var(--nc-white);
    transform: translateY(-2px);
}
