/* ============================================
   VICKING VENTURES - NOTICE BOARD STYLES
   Phase 3: Priority-Based Announcements
   ============================================ */

/* Notice Board Container */
.vv-notice-section {
    padding: 40px 20px;
    background: var(--g1);
    border-bottom: 3px solid var(--g3);
}

.vv-notice-container {
    max-width: 1200px;
    margin: 0 auto;
}

.vv-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.vv-notice-title {
    font-family: var(--fd);
    font-size: clamp(28px, 4vw, 40px);
    color: var(--fo);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vv-notice-count {
    background: var(--rd);
    color: var(--w);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Notice Grid */
.vv-notice-grid {
    display: grid;
    gap: 20px;
}

/* Notice Card */
.vv-notice-card {
    background: var(--w);
    border-left: 5px solid var(--bl);
    border-radius: var(--r);
    padding: 25px;
    box-shadow: var(--sh);
    transition: all 0.3s ease;
    position: relative;
}

.vv-notice-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shh);
}

/* Priority Colors */
.vv-notice-card.priority-high {
    border-left-color: var(--rd);
    background: linear-gradient(to right, rgba(220, 38, 38, 0.05) 0%, var(--w) 10%);
}

.vv-notice-card.priority-medium {
    border-left-color: var(--am);
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05) 0%, var(--w) 10%);
}

.vv-notice-card.priority-low {
    border-left-color: var(--bl);
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05) 0%, var(--w) 10%);
}

/* Urgent Animation for High Priority */
.vv-notice-card.priority-high .vv-notice-priority {
    animation: urgentPulse 1.5s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% {
        background: var(--rd);
        transform: scale(1);
    }
    50% {
        background: #b91c1c;
        transform: scale(1.05);
    }
}

.vv-notice-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.vv-notice-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vv-notice-priority,
.vv-notice-type {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--w);
}

.vv-notice-priority.high {
    background: var(--rd);
}

.vv-notice-priority.medium {
    background: var(--am);
}

.vv-notice-priority.low {
    background: var(--bl);
}

.vv-notice-type.general {
    background: var(--g5);
}

.vv-notice-type.event {
    background: var(--pu);
}

.vv-notice-type.policy {
    background: var(--fo);
}

.vv-notice-type.alert {
    background: var(--rd);
}

.vv-notice-expiry {
    font-size: 13px;
    color: var(--g5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.vv-notice-expiry.expiring-soon {
    color: var(--rd);
    font-weight: 600;
    animation: blinkExpiry 2s ease-in-out infinite;
}

@keyframes blinkExpiry {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.vv-notice-card-title {
    font-family: var(--fd);
    font-size: 22px;
    color: var(--g7);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.vv-notice-content {
    font-size: 15px;
    color: var(--g6);
    line-height: 1.7;
    margin-bottom: 15px;
}

.vv-notice-content p {
    margin-bottom: 10px;
}

.vv-notice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--g2);
    font-size: 13px;
    color: var(--g5);
}

.vv-notice-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Empty State */
.vv-notice-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--w);
    border-radius: var(--r);
}

.vv-notice-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.vv-notice-empty-text {
    font-size: 20px;
    color: var(--g5);
    margin-bottom: 10px;
}

.vv-notice-empty-subtext {
    font-size: 15px;
    color: var(--g4);
}

/* Loading State */
.vv-notice-loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: var(--g5);
}

.vv-notice-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--g2);
    border-top-color: var(--fo);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Priority Legend (Optional) */
.vv-notice-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    padding: 20px;
    background: var(--w);
    border-radius: var(--r);
    flex-wrap: wrap;
}

.vv-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--g6);
}

.vv-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.vv-legend-color.high {
    background: var(--rd);
}

.vv-legend-color.medium {
    background: var(--am);
}

.vv-legend-color.low {
    background: var(--bl);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vv-notice-section {
        padding: 30px 15px;
    }
    
    .vv-notice-card {
        padding: 20px;
    }
    
    .vv-notice-card-title {
        font-size: 18px;
    }
    
    .vv-notice-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vv-notice-legend {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .vv-notice-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vv-notice-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Accessibility */
.vv-notice-card:focus-within {
    outline: 3px solid var(--fo);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .vv-notice-section {
        padding: 20px 0;
    }
    
    .vv-notice-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--g3);
    }
    
    .vv-notice-count,
    .vv-notice-legend {
        display: none;
    }
}
