/* PC Announcements 274 - Public Styles */

/* CSS Custom Properties */
:root {
    --pc-announcements-274-bg-primary: #0d47a1;
    --pc-announcements-274-bg-secondary: #1565c0;
    --pc-announcements-274-text-primary: #ffffff;
    --pc-announcements-274-text-secondary: rgba(255, 255, 255, 0.9);
    --pc-announcements-274-border-color: rgba(255, 255, 255, 0.2);
    --pc-announcements-274-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --pc-announcements-274-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
    --pc-announcements-274-close-color: rgba(255, 255, 255, 0.8);
    --pc-announcements-274-close-hover: #ffffff;
    --pc-announcements-274-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --pc-announcements-274-font-size: 16px;
    --pc-announcements-274-line-height: 1.5;
    --pc-announcements-274-border-radius: 8px;
    --pc-announcements-274-z-index: 9999;
    --pc-announcements-274-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Announcement Container */
.pc-announcements-274-announcement {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--pc-announcements-274-bg-primary), var(--pc-announcements-274-bg-secondary));
    border-bottom: 1px solid var(--pc-announcements-274-border-color);
    box-shadow: var(--pc-announcements-274-shadow);
    font-family: var(--pc-announcements-274-font-family);
    font-size: var(--pc-announcements-274-font-size);
    line-height: var(--pc-announcements-274-line-height);
    color: var(--pc-announcements-274-text-primary);
    z-index: var(--pc-announcements-274-z-index);
    transition: var(--pc-announcements-274-transition);
}

.pc-announcements-274-announcement:hover {
    box-shadow: var(--pc-announcements-274-shadow-hover);
}

/* Content Container */
.pc-announcements-274-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Content Layout */
.pc-announcements-274-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

/* Image Styles */
.pc-announcements-274-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--pc-announcements-274-border-radius);
    overflow: hidden;
    border: 2px solid var(--pc-announcements-274-border-color);
    box-shadow: var(--pc-announcements-274-shadow);
}

.pc-announcements-274-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text Content */
.pc-announcements-274-text {
    flex: 1;
    min-width: 0;
}

.pc-announcements-274-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--pc-announcements-274-text-primary);
    letter-spacing: -0.02em;
}

.pc-announcements-274-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--pc-announcements-274-text-secondary);
    font-weight: 400;
}

.pc-announcements-274-message p {
    margin: 0;
}

.pc-announcements-274-message p:last-child {
    margin-bottom: 0;
}

/* Link Styles */
.pc-announcements-274-link {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    transition: var(--pc-announcements-274-transition);
}

.pc-announcements-274-link:hover {
    opacity: 0.9;
}

.pc-announcements-274-link:focus {
    outline: 2px solid var(--pc-announcements-274-close-hover);
    outline-offset: 2px;
}

/* Close Button */
.pc-announcements-274-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--pc-announcements-274-close-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pc-announcements-274-transition);
    padding: 0;
    margin-left: 16px;
}

.pc-announcements-274-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--pc-announcements-274-close-hover);
    transform: scale(1.1);
}

.pc-announcements-274-close:focus {
    outline: 2px solid var(--pc-announcements-274-close-hover);
    outline-offset: 2px;
}

.pc-announcements-274-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Animations */
.pc-announcements-274-announcement.pc-announcements-274-hidden {
    animation: pc-announcements-274-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pc-announcements-274-announcement.pc-announcements-274-show {
    animation: pc-announcements-274-slide-down 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pc-announcements-274-slide-up {
    0% {
        transform: translateY(0);
        opacity: 1;
        max-height: 200px;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
        max-height: 0;
    }
}

@keyframes pc-announcements-274-slide-down {
    0% {
        transform: translateY(-100%);
        opacity: 0;
        max-height: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        max-height: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pc-announcements-274-container {
        padding: 12px 16px;
    }
    
    .pc-announcements-274-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        text-align: center;
    }
    
    .pc-announcements-274-image {
        width: 50px;
        height: 50px;
    }
    
    .pc-announcements-274-title {
        font-size: 16px;
    }
    
    .pc-announcements-274-message {
        font-size: 13px;
    }
    
    .pc-announcements-274-close {
        position: absolute;
        top: 8px;
        right: 8px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .pc-announcements-274-container {
        padding: 10px 12px;
    }
    
    .pc-announcements-274-image {
        width: 40px;
        height: 40px;
    }
    
    .pc-announcements-274-title {
        font-size: 15px;
    }
    
    .pc-announcements-274-message {
        font-size: 12px;
    }
    
    .pc-announcements-274-close {
        width: 32px;
        height: 32px;
    }
    
    .pc-announcements-274-close svg {
        width: 14px;
        height: 14px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .pc-announcements-274-announcement {
        border-bottom: 2px solid #000;
    }
    
    .pc-announcements-274-image {
        border: 2px solid #000;
    }
    
    .pc-announcements-274-close {
        border: 2px solid var(--pc-announcements-274-text-primary);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .pc-announcements-274-announcement,
    .pc-announcements-274-close,
    .pc-announcements-274-announcement:hover {
        transition: none;
    }
    
    .pc-announcements-274-close:hover {
        transform: none;
    }
    
    .pc-announcements-274-announcement.pc-announcements-274-hidden,
    .pc-announcements-274-announcement.pc-announcements-274-show {
        animation: none;
    }
    
    .pc-announcements-274-announcement.pc-announcements-274-hidden {
        display: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --pc-announcements-274-bg-primary: #1a237e;
        --pc-announcements-274-bg-secondary: #283593;
        --pc-announcements-274-text-primary: #ffffff;
        --pc-announcements-274-text-secondary: rgba(255, 255, 255, 0.85);
        --pc-announcements-274-border-color: rgba(255, 255, 255, 0.1);
        --pc-announcements-274-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        --pc-announcements-274-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Print Styles */
@media print {
    .pc-announcements-274-announcement {
        display: none !important;
    }
}

/* RTL Support */
[dir="rtl"] .pc-announcements-274-content {
    text-align: right;
}

[dir="rtl"] .pc-announcements-274-close {
    margin-left: 0;
    margin-right: 16px;
}

[dir="rtl"] .pc-announcements-274-close:only-child {
    margin-right: 0;
}

/* Custom Theme Variations */
.pc-announcements-274-announcement.pc-announcements-274-success {
    --pc-announcements-274-bg-primary: #2e7d32;
    --pc-announcements-274-bg-secondary: #388e3c;
}

.pc-announcements-274-announcement.pc-announcements-274-warning {
    --pc-announcements-274-bg-primary: #f57c00;
    --pc-announcements-274-bg-secondary: #fb8c00;
}

.pc-announcements-274-announcement.pc-announcements-274-error {
    --pc-announcements-274-bg-primary: #c62828;
    --pc-announcements-274-bg-secondary: #d32f2f;
}

.pc-announcements-274-announcement.pc-announcements-274-info {
    --pc-announcements-274-bg-primary: #0277bd;
    --pc-announcements-274-bg-secondary: #0288d1;
}

/* Compact Version */
.pc-announcements-274-announcement.pc-announcements-274-compact {
    --pc-announcements-274-font-size: 14px;
}

.pc-announcements-274-announcement.pc-announcements-274-compact .pc-announcements-274-container {
    padding: 12px 16px;
}

.pc-announcements-274-announcement.pc-announcements-274-compact .pc-announcements-274-image {
    width: 40px;
    height: 40px;
}

.pc-announcements-274-announcement.pc-announcements-274-compact .pc-announcements-274-title {
    font-size: 16px;
}

.pc-announcements-274-announcement.pc-announcements-274-compact .pc-announcements-274-message {
    font-size: 13px;
}

/* No Image Variant */
.pc-announcements-274-announcement.pc-announcements-274-no-image .pc-announcements-274-content {
    gap: 0;
}

.pc-announcements-274-announcement.pc-announcements-274-no-image .pc-announcements-274-text {
    margin-right: 16px;
}

/* Hidden State - Animation */
.pc-announcements-274-announcement[aria-hidden="true"] {
    display: none;
}

/* Focus Management */
.pc-announcements-274-announcement:focus-within {
    outline: 2px solid var(--pc-announcements-274-close-hover);
    outline-offset: -2px;
}

/* Accessibility Improvements */
.pc-announcements-274-announcement[role="banner"] {
    max-height: none;
}

.pc-announcements-274-announcement[role="banner"].pc-announcements-274-hidden {
    max-height: 0;
    overflow: hidden;
}

/* Browser-specific fixes */
@supports (-webkit-appearance: none) {
    .pc-announcements-274-close {
        -webkit-appearance: none;
        border-radius: 50%;
    }
}

@supports not (display: grid) {
    .pc-announcements-274-content {
        display: flex;
    }
    
    .pc-announcements-274-text {
        flex: 1;
    }
}