/* Simple Cookies Bar - Style CSS */

#scb-cookies-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 15px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: scb-slide-in 0.5s ease-out;
}

/* Pozycjonowanie */
#scb-cookies-bar.scb-bottom {
    bottom: 0;
}

#scb-cookies-bar.scb-top {
    top: 0;
}

/* Typy wyświetlania */
#scb-cookies-bar.scb-float {
    position: fixed;
    bottom: 20px;
    left: auto;
    max-width: 400px;
    border-radius: 8px;
    z-index: 999999;
}

#scb-cookies-bar.scb-float.scb-float-right {
    right: 20px;
}

#scb-cookies-bar.scb-float.scb-float-left {
    left: 20px;
    right: auto;
}

#scb-cookies-bar.scb-float.scb-top {
    top: 20px;
    bottom: auto;
}

#scb-cookies-bar.scb-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: none;
}

.scb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.scb-modal-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Kontener */
.scb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.scb-message {
    flex: 1;
    min-width: 300px;
}

.scb-message p {
    margin: 0;
    padding: 0;
}

.scb-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Przyciski i linki */
.scb-accept-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.scb-privacy-link {
    text-decoration: underline;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.scb-privacy-link:hover {
    opacity: 0.8;
}

.scb-privacy-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background-color: #34495e;
    color: #ffffff;
    vertical-align: middle;
}

.scb-privacy-btn:hover {
    opacity: 0.9;
}

/* Schematy kolorów */

/* Ciemny schemat (domyślny) */
#scb-cookies-bar.scb-dark {
    background-color: #2c3e50;
    color: #ffffff;
    border-top: 3px solid #34495e;
}

#scb-cookies-bar.scb-dark .scb-accept-btn {
    background-color: #3498db;
    color: #ffffff;
}

#scb-cookies-bar.scb-dark .scb-accept-btn:hover {
    background-color: #2980b9;
}

#scb-cookies-bar.scb-dark .scb-privacy-link {
    color: #ecf0f1;
}

#scb-cookies-bar.scb-dark .scb-modal-content {
    background-color: #2c3e50;
    color: #ffffff;
}

/* Jasny schemat */
#scb-cookies-bar.scb-light {
    background-color: #ffffff;
    color: #2c3e50;
    border-top: 3px solid #ecf0f1;
}

#scb-cookies-bar.scb-light .scb-accept-btn {
    background-color: #2c3e50;
    color: #ffffff;
}

#scb-cookies-bar.scb-light .scb-accept-btn:hover {
    background-color: #34495e;
}

#scb-cookies-bar.scb-light .scb-privacy-link {
    color: #2c3e50;
}

#scb-cookies-bar.scb-light .scb-modal-content {
    background-color: #ffffff;
    color: #2c3e50;
}

/* Niebieski schemat */
#scb-cookies-bar.scb-blue {
    background-color: #3498db;
    color: #ffffff;
    border-top: 3px solid #2980b9;
}

#scb-cookies-bar.scb-blue .scb-accept-btn {
    background-color: #ffffff;
    color: #3498db;
}

#scb-cookies-bar.scb-blue .scb-accept-btn:hover {
    background-color: #ecf0f1;
}

#scb-cookies-bar.scb-blue .scb-privacy-link {
    color: #ffffff;
}

#scb-cookies-bar.scb-blue .scb-modal-content {
    background-color: #3498db;
    color: #ffffff;
}

/* Zielony schemat */
#scb-cookies-bar.scb-green {
    background-color: #27ae60;
    color: #ffffff;
    border-top: 3px solid #229954;
}

#scb-cookies-bar.scb-green .scb-accept-btn {
    background-color: #ffffff;
    color: #27ae60;
}

#scb-cookies-bar.scb-green .scb-accept-btn:hover {
    background-color: #ecf0f1;
}

#scb-cookies-bar.scb-green .scb-privacy-link {
    color: #ffffff;
}

#scb-cookies-bar.scb-green .scb-modal-content {
    background-color: #27ae60;
    color: #ffffff;
}

/* Animacje */
@keyframes scb-slide-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#scb-cookies-bar.scb-top {
    animation-name: scb-slide-in-top;
}

@keyframes scb-slide-in-top {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scb-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

#scb-cookies-bar.scb-hiding {
    animation: scb-fade-out 0.5s ease-out forwards;
}

#scb-cookies-bar.scb-top.scb-hiding {
    animation: scb-fade-out-top 0.5s ease-out forwards;
}

@keyframes scb-fade-out-top {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* Responsywność */
@media (max-width: 768px) {
    #scb-cookies-bar {
        padding: 15px;
    }
    
    .scb-container {
        flex-direction: column;
        text-align: center;
    }
    
    .scb-message {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .scb-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .scb-accept-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Float na mobilu staje się pełnej szerokości */
    #scb-cookies-bar.scb-float {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px;
        max-width: none;
    }
    
    #scb-cookies-bar.scb-float.scb-top {
        top: 10px;
        bottom: auto;
    }
    
    /* Modal na mobilu */
    #scb-cookies-bar.scb-modal {
        padding: 10px;
    }
    
    .scb-modal-content {
        padding: 20px;
        max-width: none;
        width: 100%;
    }
}