/* Cookie Banner Stílusok - WelcomeBook.hu designhoz illeszkedő */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
    border-top: 3px solid var(--primary-color);
}

.cookie-content {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: var(--font-family);
}

.cookie-content p:first-child {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.cookie-content a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cookie-btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    min-width: 120px;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, var(--success-color) 0%, #45a049 100%);
    color: white;
}

.cookie-btn.accept:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.cookie-btn.necessary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b4a 100%);
    color: white;
}

.cookie-btn.necessary:hover {
    background: linear-gradient(135deg, #ff6b4a 0%, #e55a42 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.3);
}

.cookie-btn.settings {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn.settings:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    backdrop-filter: blur(5px);
}

.cookie-modal-content {
    background-color: white;
    border-radius: 15px;
    max-width: 520px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 3px solid var(--primary-color);
    font-family: var(--font-family);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #eee;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    border-radius: 15px 15px 0 0;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: bold;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #6c757d;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cookie-modal-close:hover {
    color: var(--dark-color);
    background-color: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.2rem;
    background-color: var(--light-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.cookie-category-header strong {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: bold;
}

.cookie-category p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Cookie Switch - modern design */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    transition: 0.4s;
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

input:checked + .cookie-slider {
    background: linear-gradient(135deg, var(--success-color) 0%, #45a049 100%);
}

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

input:disabled + .cookie-slider {
    background: linear-gradient(135deg, var(--success-color) 0%, #45a049 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

input:disabled + .cookie-slider:before {
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e8 100%);
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 2px solid #eee;
    text-align: center;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    border-radius: 0 0 15px 15px;
}

.cookie-modal-footer .cookie-btn {
    min-width: 180px;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
}

/* Reszponzív design - tablet és desktop */
@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 2rem;
    }
    
    .cookie-buttons {
        flex-shrink: 0;
        justify-content: flex-end;
    }
    
    .cookie-btn {
        white-space: nowrap;
        min-width: 140px;
    }
    
    .cookie-modal-content {
        width: 520px;
    }
    
    .cookie-banner {
        padding: 1.2rem 0;
    }
    
    .cookie-content {
        padding: 0 15px;
    }
}

@media (min-width: 992px) {
    .cookie-buttons {
        gap: 1rem;
    }
    
    .cookie-btn {
        font-size: 0.95rem;
        padding: 0.8rem 1.4rem;
    }
}

/* Mobil nézet optimalizálás */
@media (max-width: 767px) {
    .cookie-banner {
        padding: 1rem 0;
    }
    
    .cookie-content {
        gap: 1rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    .cookie-content p:first-child {
        font-size: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: auto;
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
        border-radius: 6px;
    }
    
    .cookie-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
        border-radius: 10px;
    }
    
    .cookie-modal-header {
        padding: 1.2rem;
        border-radius: 10px 10px 0 0;
    }
    
    .cookie-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .cookie-modal-body {
        padding: 1.2rem;
    }
    
    .cookie-modal-footer {
        padding: 1.2rem;
        border-radius: 0 0 10px 10px;
    }
    
    .cookie-category {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cookie-category-header {
        gap: 0.8rem;
    }
    
    .cookie-category-header strong {
        font-size: 1rem;
    }
    
    .cookie-switch {
        width: 50px;
        height: 26px;
    }
    
    .cookie-slider:before {
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .cookie-slider:before {
        transform: translateX(24px);
    }
}

/* Nagyon kis képernyők (320px és alatta) */
@media (max-width: 360px) {
    .cookie-content {
        padding: 0 5px;
    }
    
    .cookie-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .cookie-modal-header h3 {
        font-size: 1rem;
    }
}

/* Animációk és effektek */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner.show {
    animation: slideUp 0.5s ease-out;
}

.cookie-banner.hide {
    animation: slideDown 0.3s ease-in;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cookie-modal.show .cookie-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* Accessibility javítások */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-modal-content,
    .cookie-btn,
    .cookie-slider,
    .cookie-modal-close {
        transition: none;
        animation: none;
    }
}

/* Focus states akadálymentesítéshez */
.cookie-btn:focus,
.cookie-modal-close:focus,
.cookie-switch input:focus + .cookie-slider {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode támogatás (ha később szükséges) */
@media (prefers-color-scheme: dark) {
    .cookie-modal-content {
        background-color: #2c3e50;
        color: white;
    }
    
    .cookie-modal-header,
    .cookie-modal-footer {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    }
    
    .cookie-category {
        background-color: #34495e;
    }
    
    .cookie-category p {
        color: #bdc3c7;
    }
}