/**
 * =================================================
 * DriveHub - Cookies Styles
 * =================================================
 */

:root {
    --primary-color: #3b82f6;
    --accent-color: #8b5cf6;
}

/* =================================================
   COOKIES BAR
   ================================================= */

.cookies-bar {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    padding: 25px;
    max-width: 380px;
    z-index: 9999;
    border: 2px solid #ddd;
    animation: slideInFromRight 0.5s ease-out;
}

.cookies-bar.show {
    display: block !important;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cookies-bar h3 {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookies-bar p {
    margin: 0 0 18px 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.cookies-bar-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.cookies-bar-buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.cookies-accept {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.cookies-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cookies-decline {
    background: #6c757d;
    color: white;
}

.cookies-decline:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.cookies-customize {
    background: white;
    color: #333;
    border: 2px solid var(--primary-color);
}

.cookies-customize:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cookies-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.cookies-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Responzívne pre mobily */
@media (max-width: 768px) {
    .cookies-bar {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 20px;
    }
    
    .cookies-bar h3 {
        font-size: 1.1rem;
    }
    
    .cookies-bar p {
        font-size: 0.85rem;
    }
}

/* =================================================
   COOKIES BAR - Rozšírený dizajn s nastaveniami
   ================================================= */

.cookies-view {
    transition: all 0.3s ease;
}

.cookies-settings-intro {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* Cookie kategórie */
.cookie-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.badge-required {
    display: inline-block;
    padding: 3px 8px;
    background: #ffc107;
    color: #000;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

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

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

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #999;
    cursor: not-allowed;
}

/* Cookies links */
.cookies-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.cookies-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.cookies-links a:hover {
    text-decoration: underline;
}

/* Buttons */
.cookies-save {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.cookies-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cookies-back {
    background: #6c757d;
    color: white;
}

.cookies-back:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* =================================================
   COOKIES BADGE - Malá ikonka po súhlase
   ================================================= */

.cookies-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9998;
    opacity: 0;
    transition: all 0.3s;
}

.cookies-badge.show {
    opacity: 1;
    transform: scale(1);
}

.cookies-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.cookies-badge-icon {
    width: 30px;
    height: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookies-badge-icon svg {
    width: 100%;
    height: 100%;
}

.cookies-badge-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cookies-badge:hover .cookies-badge-tooltip {
    opacity: 1;
}

.cookies-badge-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0,0,0,0.8);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cookies-badge {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .cookies-badge-icon {
        width: 25px;
        height: 25px;
    }
    
    .cookies-badge-tooltip {
        display: none;
    }
}
