/* Vidoport Consent Banner Styles */
/* KVKK/GDPR Uyumlu Cookie Consent */

/* Banner Container */
.vp-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vp-consent-banner.active {
    transform: translateY(0);
}

.vp-consent-banner.hidden {
    display: none;
}

/* Banner Inner Container */
.vp-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

/* Text Content */
.vp-consent-text {
    flex: 1;
    min-width: 300px;
}

.vp-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.vp-consent-text p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.vp-consent-text a {
    color: #0056d2;
    text-decoration: none;
}

.vp-consent-text a:hover {
    text-decoration: underline;
}

/* Buttons Container */
.vp-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button Base */
.vp-consent-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

/* Primary Button - Accept All */
.vp-consent-btn-accept {
    background: linear-gradient(135deg, #0056d2 0%, #004bb5 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.3);
}

.vp-consent-btn-accept:hover {
    background: linear-gradient(135deg, #004bb5 0%, #003d94 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 210, 0.4);
}

/* Secondary Button - Customize */
.vp-consent-btn-settings {
    background: #f0f0f0;
    color: #0056d2;
    border: 1px solid #0056d2;
}

.vp-consent-btn-settings:hover {
    background: #e8f0fc;
}

/* Tertiary Button - Necessary Only */
.vp-consent-btn-necessary {
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
}

.vp-consent-btn-necessary:hover {
    color: #333;
    background: #f5f5f5;
    border-color: #999;
}

/* Settings Panel */
.vp-consent-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vp-consent-settings.active {
    display: flex;
}

.vp-consent-settings-panel {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Settings Header */
.vp-consent-settings-header {
    padding: 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vp-consent-settings-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1a1a2e;
}

.vp-consent-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.vp-consent-close:hover {
    color: #333;
}

/* Settings Body */
.vp-consent-settings-body {
    padding: 24px;
}

.vp-consent-settings-intro {
    margin-bottom: 24px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Category Item */
.vp-consent-category {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.vp-consent-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9f9f9;
    cursor: pointer;
}

.vp-consent-category-header:hover {
    background: #f0f0f0;
}

.vp-consent-category-info h5 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #1a1a2e;
}

.vp-consent-category-info span {
    font-size: 12px;
    color: #888;
}

.vp-consent-category-info span.always-on {
    color: #28a745;
    font-weight: 500;
}

/* Toggle Switch */
.vp-consent-toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.vp-consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

.vp-consent-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vp-consent-toggle input:checked + .vp-consent-toggle-slider {
    background-color: #0056d2;
}

.vp-consent-toggle input:checked + .vp-consent-toggle-slider:before {
    transform: translateX(24px);
}

.vp-consent-toggle input:disabled + .vp-consent-toggle-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

/* Category Details */
.vp-consent-category-details {
    padding: 16px;
    display: none;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.vp-consent-category.expanded .vp-consent-category-details {
    display: block;
}

.vp-consent-category-details ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.vp-consent-category-details li {
    margin-bottom: 4px;
}

/* Settings Footer */
.vp-consent-settings-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Floating Settings Button (after consent given) */
.vp-consent-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: #0056d2;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.3);
    z-index: 9999;
    transition: transform 0.2s ease;
}

.vp-consent-float-btn:hover {
    transform: scale(1.1);
}

.vp-consent-float-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.vp-consent-float-btn.active {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .vp-consent-banner {
        padding: 16px;
    }

    .vp-consent-inner {
        flex-direction: column;
        text-align: center;
    }

    .vp-consent-text {
        min-width: auto;
    }

    .vp-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .vp-consent-btn {
        flex: 1;
        min-width: 100px;
    }

    .vp-consent-settings-panel {
        max-height: 80vh;
        margin: 10px;
    }

    .vp-consent-settings-header,
    .vp-consent-settings-body,
    .vp-consent-settings-footer {
        padding: 16px;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vp-consent-banner.animate-in {
    animation: slideUp 0.4s ease-out forwards;
}
