/* VNYP Privacy - Cookie Banner Frontend Styles */

/* Settings Icon */
.vnyp-privacy-settings-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 9998;
    color: white;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.vnyp-privacy-settings-icon:hover {
    opacity: 1;
    transform: scale(1.05);
    background: #007cba;
}

.vnyp-privacy-settings-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.vnyp-privacy-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.vnyp-banner-top {
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.vnyp-banner-bottom {
    bottom: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.vnyp-privacy-content {
    padding: 18px 25px;
    position: relative;
}

.vnyp-privacy-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex-wrap: wrap;
}

.vnyp-privacy-message {
    flex: 1;
    min-width: 320px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.vnyp-privacy-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.vnyp-privacy-icon svg {
    width: 28px;
    height: 28px;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.vnyp-privacy-text {
    flex: 1;
    line-height: 1.5;
}

.vnyp-privacy-text p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.vnyp-privacy-text p:last-child {
    margin-bottom: 0;
}

.vnyp-privacy-text strong {
    font-weight: 600;
    font-size: 15px;
}

/* Cookie details */
.vnyp-privacy-details {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.15);
    animation: vnypPrivacyFadeIn 0.3s ease-out;
}

.vnyp-privacy-details h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
}

.vnyp-privacy-category {
    margin: 12px 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.vnyp-privacy-category:last-child {
    border-bottom: none;
}

.vnyp-privacy-category label {
    display: block;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.vnyp-privacy-category label:hover {
    opacity: 0.8;
}

.vnyp-privacy-category input {
    margin-right: 10px;
    margin-top: 2px;
    accent-color: #007cba;
    width: 16px;
    height: 16px;
}

.vnyp-privacy-category p {
    margin: 6px 0 0 26px !important;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
    font-weight: 400;
}

/* Actions */
.vnyp-privacy-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.vnyp-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    font-family: inherit;
    outline: none;
}

.vnyp-btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

.vnyp-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vnyp-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004666 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.vnyp-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: inherit;
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.vnyp-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.vnyp-btn-link {
    background: transparent;
    color: inherit;
    text-decoration: none;
    padding: 8px 4px;
    border: none;
    font-size: 12px;
    opacity: 0.8;
    border-bottom: 1px dotted rgba(255,255,255,0.4);
}

.vnyp-btn-link:hover {
    opacity: 1;
    border-bottom-style: solid;
}

/* Settings icon */
.vnyp-privacy-settings-icon {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    z-index: 999998;
    border: 2px solid rgba(255,255,255,0.1);
}

.vnyp-privacy-settings-icon:hover {
    background: linear-gradient(135deg, #555 0%, #777 100%);
    transform: scale(1.1) rotate(45deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.vnyp-privacy-settings-icon svg {
    transition: transform 0.3s ease;
}

.vnyp-privacy-settings-icon:hover svg {
    transform: rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vnyp-privacy-container {
        flex-direction: column;
        gap: 18px;
    }
    
    .vnyp-privacy-message {
        min-width: auto;
    }
    
    .vnyp-privacy-actions {
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
    
    .vnyp-btn {
        flex: 1;
        min-width: 90px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .vnyp-btn-link {
        flex: none;
        order: -1;
        margin-bottom: 5px;
    }
    
    .vnyp-privacy-content {
        padding: 20px 18px;
    }
    
    .vnyp-privacy-text {
        font-size: 14px;
    }
    
    .vnyp-privacy-settings-icon {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .vnyp-privacy-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .vnyp-btn {
        width: 100%;
        flex: none;
    }
    
    .vnyp-btn-link {
        margin-bottom: 8px;
    }
}

/* Animations */
.vnyp-privacy-banner {
    animation: vnypPrivacySlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.vnyp-banner-top {
    animation-name: vnypPrivacySlideInTop;
}

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

@keyframes vnypPrivacyFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vnyp-privacy-banner.vnyp-hiding {
    animation: vnypPrivacySlideOut 0.3s ease-in forwards;
}

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

.vnyp-banner-top.vnyp-hiding {
    animation-name: vnypPrivacySlideOutTop;
}

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

/* Accessibility */
.vnyp-btn:focus-visible {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.vnyp-privacy-banner * {
    box-sizing: border-box;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .vnyp-privacy-banner {
        border: 2px solid;
    }
    
    .vnyp-btn {
        border: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .vnyp-privacy-banner,
    .vnyp-privacy-details,
    .vnyp-btn,
    .vnyp-privacy-settings-icon {
        animation: none;
        transition: none;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .vnyp-privacy-banner {
        box-shadow: 0 2px 15px rgba(255,255,255,0.1);
    }
}