/**
 * Cookie lišta CSS - KOMPLETNÍ SOUBOR
 * /www/css/cookielista.css
 */

/* COOKIE BAR */
#elshop-cookie-bar {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#elshop-cookie-bar.ecb-show {
    bottom: 0;
}

.ecb-container {
    background: #1a1a1a;
    border-top: 3px solid #FF6B00;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
}

.ecb-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.ecb-text {
    flex: 1;
    color: #fff;
}

.ecb-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.ecb-desc {
    font-size: 13px;
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

.ecb-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* TLAČÍTKA */
.ecb-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ecb-btn-accept-all {
    background: #FF6B00;
    color: #fff;
}

.ecb-btn-accept-all:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,0,0.3);
}

.ecb-btn-reject {
    background: transparent;
    color: #fff;
    border: 1px solid #666;
}

.ecb-btn-reject:hover {
    background: rgba(255,255,255,0.1);
    border-color: #999;
}

.ecb-btn-settings {
    background: transparent;
    color: #ccc;
    border: 1px solid #444;
    padding: 10px 16px;
}

.ecb-btn-settings:hover {
    background: rgba(255,107,0,0.1);
    border-color: #FF6B00;
    color: #FF6B00;
}

.ecb-btn-settings svg {
    width: 16px;
    height: 16px;
}

/* NASTAVENÍ MODAL */
.ecb-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.ecb-settings.ecb-settings-show {
    opacity: 1;
}

.ecb-settings-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.ecb-settings-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ecb-settings-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.ecb-settings-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.ecb-settings-close:hover {
    transform: rotate(90deg);
}

.ecb-settings-close svg {
    stroke: #999;
}

.ecb-settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.ecb-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.ecb-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ecb-category-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ecb-category-info {
    flex: 1;
}

.ecb-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.ecb-category-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* SWITCH PŘEPÍNAČ */
.ecb-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.ecb-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ecb-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.ecb-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .ecb-slider {
    background-color: #FF6B00;
}

input:checked + .ecb-slider:before {
    transform: translateX(22px);
}

.ecb-switch-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ecb-switch-disabled .ecb-slider {
    cursor: not-allowed;
}

.ecb-settings-footer {
    padding: 20px 30px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
}

.ecb-btn-save {
    background: #FF6B00;
    color: #fff;
    padding: 12px 40px;
    font-size: 16px;
}

.ecb-btn-save:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,0,0.3);
}

/* SCROLLBAR */
.ecb-settings-body::-webkit-scrollbar {
    width: 8px;
}

.ecb-settings-body::-webkit-scrollbar-track {
    background: #f9f9f9;
}

.ecb-settings-body::-webkit-scrollbar-thumb {
    background: #FF6B00;
    border-radius: 4px;
}

.ecb-settings-body::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* ANIMACE */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ecb-settings-content {
    animation: slideUp 0.3s ease-out;
}

/* MOBILE - PLOVOUCÍ KARTA NAD SPODNÍ NAVIGACÍ */
@media (max-width: 768px) {
    #elshop-cookie-bar {
        bottom: -200px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    #elshop-cookie-bar.ecb-show {
        bottom: 80px;
    }
    
    .ecb-container {
        border-radius: 12px;
        margin: 0;
        box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
    }
    
    .ecb-content {
        flex-direction: row;
        padding: 10px 12px;
        text-align: left;
        align-items: center;
        gap: 10px;
    }
    
    .ecb-text {
        flex: 1;
        margin-bottom: 0;
    }
    
    .ecb-title {
        font-size: 12px;
        margin-bottom: 2px;
        font-weight: 600;
    }
    
    .ecb-desc {
        display: none;
    }
    
    .ecb-actions {
        width: auto;
        flex-wrap: nowrap;
        gap: 5px;
        flex-shrink: 0;
    }
    
    .ecb-btn {
        padding: 6px 10px;
        font-size: 10px;
        border-radius: 4px;
    }
    
    .ecb-btn-settings {
        padding: 6px;
        min-width: 28px;
    }
    
    .ecb-btn-settings span {
        display: none;
    }
    
    .ecb-btn-settings svg {
        width: 14px;
        height: 14px;
    }
    
    .ecb-settings-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .ecb-settings-header {
        padding: 20px;
    }
    
    .ecb-settings-header h3 {
        font-size: 18px;
    }
    
    .ecb-settings-body {
        padding: 20px;
    }
    
    .ecb-category {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .ecb-category-header {
        gap: 15px;
    }
}

/* VELMI MALÉ OBRAZOVKY */
@media (max-width: 380px) {
    #elshop-cookie-bar.ecb-show {
        bottom: 75px;
    }
    
    .ecb-content {
        padding: 8px 10px;
    }
    
    .ecb-title {
        font-size: 11px;
    }
    
    .ecb-btn {
        padding: 5px 8px;
        font-size: 9px;
    }
    
    .ecb-btn-accept-all {
        padding: 5px 10px;
    }
}

/* LANDSCAPE ORIENTACE NA MOBILU */
@media (max-width: 768px) and (orientation: landscape) {
    #elshop-cookie-bar.ecb-show {
        bottom: 10px;
    }
    
    .ecb-content {
        padding: 8px 12px;
    }
}

/* PŘÍSTUPNOST */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}