/* Kontajner */
.oznamy-wrapper {
    font-family: 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 20px 0;
}

/* Karta dokumentu - Rovnaký štýl ako Revízie */
.doc-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    text-decoration: none !important;
    color: #333;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.doc-card:hover {
    background: #f9f9f9;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Ikona vľavo */
.doc-icon {
    background: #81C7E5; /* Rovnaká modrá */
    color: #fff;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-right: 15px;
    font-family: monospace;
}

/* Textová časť */
.doc-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doc-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    color: #222;
}

.doc-desc {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

/* --- MINI VERZIA (Shortcode: [moje_oznamy_mini]) --- */
.oznamy-mini .doc-card {
    padding: 12px 15px; /* Menší padding */
    margin-bottom: 10px;
    border-radius: 8px;
}

.oznamy-mini .doc-icon {
    min-width: 35px;
    height: 35px;
    font-size: 14px;
    margin-right: 12px;
}

.oznamy-mini .doc-title {
    font-size: 15px;
    margin-bottom: 0;
}

/* Responsivita */
@media (max-width: 480px) {
    .doc-card { padding: 15px; }
    .doc-title { font-size: 14px; }
    .doc-icon { min-width: 40px; height: 40px; margin-right: 12px; }
}

/* --- HLAVNÝ OZNAM (Shortcode & Popup) --- */

/* Inline verzia hlavného oznamu cez shortcode */
.ozn-hl-card-inline {
    display: flex;
    align-items: flex-start;
    background: #fff5f5; /* Veľmi jemné červené pozadie pre dôležitosť */
    border: 1px solid #fecaca;
    border-left: 6px solid #ef4444;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.05);
    position: relative;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.ozn-hl-card-inline .ozn-hl-icon {
    background: #ef4444;
    color: #fff;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
}

.ozn-hl-card-inline .ozn-hl-content {
    flex: 1;
}

.ozn-hl-card-inline .ozn-hl-title {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
    margin: 0 0 5px 0;
}

.ozn-hl-card-inline .ozn-hl-desc {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.ozn-hl-card-inline .ozn-hl-btn {
    display: inline-block;
    background: #ef4444;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.ozn-hl-card-inline .ozn-hl-btn:hover {
    background: #dc2626;
}

/* Plávajúci popup v rohu (navrhnutý tak, aby ho neblokoval ad-blocker) */
#ozn-hl-card {
    position: fixed;
    bottom: -200px; /* Štart mimo obrazovky */
    right: 20px;
    z-index: 999999;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-left: 5px solid #ef4444;
    border-top: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 40px 18px 18px; /* Väčší padding vpravo pre close button */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

#ozn-hl-card.ozn-hl-show {
    bottom: 20px;
    opacity: 1;
    transform: translateY(0) scale(1);
}

#ozn-hl-card.ozn-hl-hide {
    opacity: 0;
    transform: translateY(100px) scale(0.9);
}

#ozn-hl-card .ozn-hl-title {
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#ozn-hl-card .ozn-hl-title::before {
    content: "⚠️";
    font-size: 14px;
}

#ozn-hl-card .ozn-hl-desc {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

#ozn-hl-card .ozn-hl-btn {
    display: inline-block;
    background: #ef4444;
    color: #fff !important;
    text-decoration: none !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s;
}

#ozn-hl-card .ozn-hl-btn:hover {
    background: #dc2626;
}

#ozn-hl-card .ozn-hl-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ozn-hl-card .ozn-hl-close:hover {
    color: #374151;
}

@media (max-width: 480px) {
    #ozn-hl-card {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

/* Zjednodušený hlavný oznam */
.ozn-hl-simple {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #ef4444; /* Výrazná červená pre dôležitosť */
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    margin: 15px 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 6px 0;
}

.ozn-hl-simple-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ozn-hl-simple-text::before {
    content: "⚠️";
    font-size: 14px;
}

.ozn-hl-simple-btn {
    display: inline-block;
    background: #ef4444;
    color: #fff !important;
    text-decoration: none !important;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s;
    line-height: 1.2;
}

.ozn-hl-simple-btn:hover {
    background: #dc2626;
}

/* Plávajúce spúšťacie tlačidlo (reprezentujúca ikona) */
#ozn-hl-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999998; /* O niečo nižšie ako popup, aby sa neprekrývali */
    width: 48px;
    height: 48px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
    font-size: 22px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    padding: 0;
    line-height: 1;
}

#ozn-hl-launcher.ozn-hl-launcher-show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#ozn-hl-launcher:hover {
    background: #dc2626;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

#ozn-hl-launcher:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    #ozn-hl-launcher {
        bottom: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}