/* Super TopBar - Public Styles */

/* Reset a základní styly */
.stb-topbar * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Hlavní kontejner top baru */
.stb-topbar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 60px;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Pozice top baru */
.stb-position-top {
    top: 0;
}

.stb-position-bottom {
    bottom: 0;
    top: auto;
}

/* Kontejner obsahu */
.stb-topbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.stb-topbar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
    flex: 1;
}

/* Text styling */
.stb-topbar-content p {
    margin: 0;
    font-weight: 500;
}

.stb-topbar-content strong {
    font-weight: 700;
}

.stb-topbar-content a:not(.stb-topbar-button) {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.stb-topbar-content a:not(.stb-topbar-button):hover {
    opacity: 0.8;
}

/* Tlačítko */
.stb-topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background-color: #fff;
    color: #667EEA;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}

.stb-topbar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.stb-topbar-button:active {
    transform: translateY(0);
}

/* Zavírací tlačítko */
.stb-topbar-dismiss {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.stb-topbar-dismiss:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.stb-topbar-dismiss:active {
    transform: translateY(-50%) scale(0.95);
}

/* Animace */
.stb-animation-slide {
    transform: translateY(-100%);
}

.stb-animation-slide.stb-show {
    transform: translateY(0);
}

.stb-animation-fade {
    opacity: 0;
}

.stb-animation-fade.stb-show {
    opacity: 1;
}

.stb-animation-bounce {
    transform: translateY(-100%) scale(0.8);
}

.stb-animation-bounce.stb-show {
    transform: translateY(0) scale(1);
    animation: stb-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes stb-bounce {
    0% {
        transform: translateY(-100%) scale(0.8);
    }
    50% {
        transform: translateY(10%) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.stb-animation-zoom {
    transform: scale(0);
    opacity: 0;
}

.stb-animation-zoom.stb-show {
    transform: scale(1);
    opacity: 1;
}

/* Responsivní design */
@media screen and (max-width: 768px) {
    .stb-topbar {
        font-size: 13px;
    }
    
    .stb-topbar-container {
        padding: 12px 15px;
    }
    
    .stb-topbar-content {
        gap: 10px;
        flex-direction: column;
    }
    
    .stb-topbar-button {
        padding: 10px 18px;
        font-size: 13px;
        margin-top: 5px;
    }
    
    .stb-topbar-dismiss {
        right: 10px;
        padding: 6px;
    }
    
    /* Skrýt na mobilech pokud je nastaveno */
    .stb-hide-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    /* Skrýt na desktopu pokud je nastaveno */
    .stb-hide-desktop {
        display: none !important;
    }
}

/* Přizpůsobení pro malé obrazovky */
@media screen and (max-width: 480px) {
    .stb-topbar {
        font-size: 12px;
    }
    
    .stb-topbar-container {
        padding: 10px 12px;
    }
    
    .stb-topbar-button {
        width: 100%;
        max-width: 200px;
        padding: 12px 16px;
    }
    
    .stb-topbar-content {
        text-align: center;
    }
}

/* Vysoké rozlišení */
@media screen and (min-width: 1200px) {
    .stb-topbar {
        font-size: 15px;
    }
    
    .stb-topbar-container {
        padding: 18px 25px;
    }
    
    .stb-topbar-button {
        padding: 10px 24px;
        font-size: 15px;
    }
}

/* Tmavý režim */
@media (prefers-color-scheme: dark) {
    .stb-topbar-button {
        background-color: rgba(255, 255, 255, 0.9);
    }
}

/* Focus styly pro přístupnost */
.stb-topbar-button:focus,
.stb-topbar-dismiss:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Print styly */
@media print {
    .stb-topbar {
        display: none !important;
    }
}

/* Dodatečné utility třídy */
.stb-topbar-hidden {
    display: none !important;
}

.stb-topbar-minimized {
    min-height: 40px;
}

.stb-topbar-minimized .stb-topbar-container {
    padding: 8px 15px;
}

.stb-topbar-minimized .stb-topbar-content {
    font-size: 12px;
}

/* Custom výšky */
.stb-topbar[data-height="small"] {
    min-height: 45px;
}

.stb-topbar[data-height="large"] {
    min-height: 80px;
}

.stb-topbar[data-height="large"] .stb-topbar-container {
    padding: 25px 20px;
}

/* Gradientní variace */
.stb-gradient-blue {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

.stb-gradient-green {
    background: linear-gradient(135deg, #48CC6C 0%, #2E8B57 100%);
}

.stb-gradient-red {
    background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%);
}

.stb-gradient-orange {
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B35 100%);
}

.stb-gradient-purple {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
}