/* YG Cookie Consent Styles - RTL Support */
.ygcc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

/* Position variants */
.ygcc-overlay.ygcc-pos-center {
    align-items: center;
    justify-content: center;
}

.ygcc-overlay.ygcc-pos-footer {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
}
.ygcc-pos-footer .ygcc-banner {
    width: 100%;
    max-width: 720px;
    margin: 0 16px 0;
    border-radius: 16px 16px 0 0;
}

.ygcc-overlay.ygcc-pos-header {
    align-items: flex-start;
    justify-content: center;
    padding-top: 16px;
}
.ygcc-pos-header .ygcc-banner {
    width: 100%;
    max-width: 720px;
    margin: 0 16px 0;
    border-radius: 0 0 16px 16px;
}

.ygcc-banner {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 400px;
    width: 90%;
    padding: 32px;
    margin: 20px;
    direction: rtl;
    text-align: center;
    position: relative;
    animation: ygcc-slide-up 0.3s ease-out;
}

@keyframes ygcc-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ygcc-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ygcc-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: inherit;
    line-height: 1.3;
}

.ygcc-message {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: inherit;
    opacity: 0.8;
}

.ygcc-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ygcc-button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-family: inherit;
    direction: rtl;
}

.ygcc-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ygcc-button:active {
    transform: translateY(0);
}

.ygcc-accept {
    background-color: #e53e3e;
    color: #ffffff;
}

.ygcc-accept:hover {
    background-color: #c53030;
}

.ygcc-decline {
    background-color: #e2e8f0;
    color: #4a5568;
}

.ygcc-decline:hover {
    background-color: #cbd5e0;
}

.ygcc-privacy-link {
    margin-top: 8px;
}

.ygcc-privacy-link a {
    color: #4299e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.ygcc-privacy-link a:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* Site blocking overlay */
.ygcc-site-blocked {
    pointer-events: none !important;
    user-select: none !important;
}

.ygcc-site-blocked * {
    pointer-events: none !important;
    user-select: none !important;
}

.ygcc-overlay,
.ygcc-banner,
.ygcc-banner * {
    pointer-events: auto !important;
    user-select: auto !important;
}

/* Responsive design */
@media (max-width: 480px) {
    .ygcc-banner {
        margin: 10px;
        padding: 24px;
        max-width: none;
    }
    
    .ygcc-title {
        font-size: 20px;
    }
    
    .ygcc-message {
        font-size: 14px;
    }
    
    .ygcc-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ygcc-banner {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .ygcc-decline {
        background-color: #4a5568;
        color: #e2e8f0;
    }
    
    .ygcc-decline:hover {
        background-color: #2d3748;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .ygcc-banner {
        border: 2px solid #000;
    }
    
    .ygcc-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ygcc-banner {
        animation: none;
    }
    
    .ygcc-button {
        transition: none;
    }
    
    .ygcc-button:hover {
        transform: none;
    }
}
