/**
 * Cookie Notice Styles
 */

.impulapress-cookie-notice {
    position: fixed;
    z-index: 999999;
    background: #1d1d1f;
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.impulapress-cookie-notice.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.impulapress-cookie-notice.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Positions */
.impulapress-cookie-notice.bottom-right {
    bottom: 24px;
    right: 24px;
}

.impulapress-cookie-notice.bottom-left {
    bottom: 24px;
    left: 24px;
}

.impulapress-cookie-notice.bottom-center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
}

.impulapress-cookie-notice.bottom-center.show {
    transform: translateX(-50%) translateY(0);
}

.impulapress-cookie-notice.bottom-center.hide {
    transform: translateX(-50%) translateY(20px);
}

/* Content */
.cookie-notice-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cookie-icon {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.9;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
}

.cookie-policy-link {
    font-size: 13px;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.cookie-policy-link:hover {
    opacity: 1;
}

/* Actions */
.cookie-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie-accept-btn {
    flex: 1;
    padding: 10px 20px;
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-accept-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.cookie-accept-btn:active {
    transform: translateY(0);
}

.cookie-more-info-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-more-info-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Light Theme */
.impulapress-cookie-notice.theme-light {
    background: #ffffff !important;
    color: #1d1d1f !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.impulapress-cookie-notice.theme-light .cookie-policy-link {
    color: #1d1d1f !important;
}

.impulapress-cookie-notice.theme-light .cookie-more-info-btn {
    border-color: rgba(29, 29, 31, 0.2);
    color: #1d1d1f !important;
}

.impulapress-cookie-notice.theme-light .cookie-more-info-btn:hover {
    background: rgba(29, 29, 31, 0.05);
    border-color: rgba(29, 29, 31, 0.3);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    z-index: 1;
    background: #1d1d1f;
    color: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: calc(100% - 32px);
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cookie-modal-content.theme-light {
    background: #ffffff;
    color: #1d1d1f;
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-content.theme-light .cookie-modal-header {
    border-bottom-color: rgba(29, 29, 31, 0.1);
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cookie-modal-close:hover {
    opacity: 1;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-modal-body p {
    margin: 0 0 16px;
    line-height: 1.6;
}

.cookie-preferences {
    margin-top: 24px;
}

.cookie-pref-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 12px;
}

.cookie-modal-content.theme-light .cookie-pref-item {
    background: rgba(29, 29, 31, 0.05);
}

.cookie-pref-item input[type="checkbox"] {
    margin-top: 2px;
}

.cookie-pref-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.cookie-pref-item p {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
}

.cookie-modal-footer {
    padding: 16px 24px 24px;
}

.cookie-modal-accept {
    width: 100%;
    padding: 12px 24px;
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-modal-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .impulapress-cookie-notice {
        max-width: calc(100% - 32px);
        left: 16px !important;
        right: 16px !important;
        bottom: 16px;
        transform: translateY(20px);
    }
    
    .impulapress-cookie-notice.bottom-center {
        transform: translateY(20px);
    }
    
    .impulapress-cookie-notice.show {
        transform: translateY(0);
    }
    
    .impulapress-cookie-notice.hide {
        transform: translateY(20px);
    }
    
    .cookie-modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
    }
}
