/**
 * AdBlocker Detection Modal Styles (Competitor-Style)
 * SEO-Friendly: Styles are loaded via JavaScript, don't affect initial page load
 */

.adblock-modal-root {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.adblock-modal-root.adblock-modal-show {
    opacity: 1;
    visibility: visible;
}

.adblock-dialog-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adblock-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
}

.adblock-dialog {
    position: relative;
    background: #ffffff !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: hidden;
    overflow-x: hidden;
    z-index: 100000;
    outline: none;
    transform: scale(0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* Scrolling will be enabled via JavaScript only when needed */

/* Scrollbar styling when scrolling is enabled */
.adblock-dialog[style*="overflow-y: auto"] {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.adblock-dialog[style*="overflow-y: auto"]::-webkit-scrollbar {
    width: 8px;
}

.adblock-dialog[style*="overflow-y: auto"]::-webkit-scrollbar-track {
    background: transparent;
}

.adblock-dialog[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.adblock-dialog[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.adblock-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #5f6368;
    transition: all 0.2s ease;
    z-index: 100001;
    padding: 0;
    outline: none;
}

.adblock-close-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
    transform: scale(1.1);
}

.adblock-close-button:active {
    transform: scale(0.95);
}

.adblock-close-button:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.adblock-close-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.adblock-modal-root.adblock-modal-show .adblock-dialog {
    transform: scale(1);
}

.adblock-dialog-content {
    padding: 32px 28px 24px 28px;
    overflow-y: visible;
    flex-shrink: 0;
}

.adblock-step {
    min-height: 200px;
}

.adblock-header {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.adblock-header-image-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
}

.adblock-header-image {
    max-width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

.adblock-dialog-headline {
    text-align: center;
    margin-bottom: 16px;
    margin-top: 8px;
}

.adblock-dialog-headline-text {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.adblock-dialog-body {
    text-align: center;
    margin-bottom: 16px;
    padding: 0 8px;
}

.adblock-dialog-body-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #5f6368;
    font-weight: 400;
}

.adblock-dialog-footer {
    padding: 0 28px 28px 28px;
}

.adblock-buttons-section {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.adblock-button {
    position: relative;
    min-width: 220px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    overflow: hidden;
    outline: none;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

.adblock-button-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a73e8;
    transition: all 0.2s ease;
}

.adblock-button-whitelist .adblock-button-background {
    background: #1a73e8;
}

.adblock-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.adblock-button:hover .adblock-button-background {
    background: #1557b0;
}

.adblock-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}

.adblock-button:active .adblock-button-background {
    background: #0d47a1;
}

.adblock-button-text {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.2px;
}

.adblock-focus-trap-pre,
.adblock-focus-trap-post {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .adblock-dialog {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .adblock-dialog-content {
        padding: 24px 20px 20px 20px;
    }
    
    .adblock-header {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .adblock-dialog-headline-text {
        font-size: 22px;
    }

    .adblock-dialog-body-text {
        font-size: 15px;
    }
    
    .adblock-dialog-footer {
        padding: 0 20px 24px 20px;
    }

    .adblock-button {
        min-width: 100%;
        width: 100%;
        padding: 13px 24px;
    }

    .adblock-header-image-container {
        max-width: 180px;
    }

    .adblock-header-image {
        max-height: 60px;
    }
    
    .adblock-close-button {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }
    
    .adblock-close-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Dark mode support - Keep modal white even in dark mode */
@media (prefers-color-scheme: dark) {
    .adblock-dialog {
        background: #ffffff !important;
        color: #1a1a1a;
    }

    .adblock-dialog-headline-text {
        color: #1a1a1a;
    }

    .adblock-dialog-body-text {
        color: #5f6368;
    }

    .adblock-dialog-overlay {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Accessibility */
.adblock-dialog:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.adblock-button:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* Animation for modal entrance */
@keyframes adblock-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.adblock-modal-root.adblock-modal-show .adblock-dialog {
    animation: adblock-modal-fade-in 0.3s ease;
}

/* Extension Selection Styles */
.adblock-extensions-list {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 16px;
}

.adblock-extension-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    outline: none;
    position: relative;
    min-width: 80px;
    flex: 1;
    max-width: 120px;
}

.adblock-extension-item:hover {
    opacity: 0.8;
}

.adblock-extension-item:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 4px;
    border-radius: 4px;
}

.adblock-extension-item.active {
    color: #1a73e8;
}

.adblock-extension-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a73e8;
    border-radius: 2px;
}

.adblock-extension-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    flex-shrink: 0;
    background: transparent;
    overflow: hidden;
}

.adblock-extension-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.adblock-icon-adblock {
    background: transparent;
}

.adblock-icon-abp {
    background: transparent;
}

.adblock-icon-ublock {
    background: transparent;
}

.adblock-icon-other {
    background: #6c757d;
    font-size: 28px;
    color: #ffffff;
    font-weight: 700;
}

/* Instructions Container */
.adblock-instructions-container {
    margin-top: 0;
    padding-top: 24px;
    animation: fadeIn 0.3s ease;
}

/* Instructions Styles */
.adblock-instructions {
    margin-top: 0;
}

.adblock-instruction-browser {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.adblock-browser-window {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 8px;
    margin: 0 auto;
    max-width: 400px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.adblock-browser-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 2px;
}

.adblock-browser-nav {
    display: flex;
    gap: 4px;
}

.adblock-browser-nav-btn {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
}

.adblock-browser-url {
    flex: 1;
    height: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 10px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    color: #666;
}

.adblock-browser-icon {
    width: 28px;
    height: 28px;
    margin-left: auto;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    overflow: hidden;
}

.adblock-browser-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.adblock-browser-icon.adblock-icon-abp {
    background: transparent;
}

.adblock-browser-icon.adblock-icon-ublock {
    background: transparent;
}

.adblock-browser-icon.adblock-icon-other {
    background: #6c757d;
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
}

.adblock-browser-hint {
    margin: 0;
    font-size: 12px;
    color: #5f6368;
    font-style: italic;
}

.adblock-instruction-steps {
    text-align: left;
    margin: 0;
    padding-left: 24px;
    color: #1a1a1a;
}

.adblock-instruction-steps li {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 15px;
}

.adblock-instruction-steps li:last-child {
    margin-bottom: 0;
}

.adblock-sub-instruction {
    margin: 8px 0 0 0;
    padding-left: 16px;
    font-size: 14px;
    color: #5f6368;
    font-style: italic;
}

.adblock-icon-inline {
    display: inline-block;
    margin: 0 4px;
    vertical-align: middle;
}

.adblock-icon-inline img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    display: inline-block;
}

/* Step Transitions */
.adblock-step {
    animation: fadeIn 0.3s ease;
}

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

/* Mobile Responsive for Extensions */
@media (max-width: 768px) {
    .adblock-extensions-list {
        gap: 6px;
    }
    
    .adblock-extension-item {
        min-width: 70px;
        max-width: 100px;
        font-size: 12px;
    }
    
    .adblock-extension-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .adblock-browser-window {
        max-width: 100%;
    }
    
    .adblock-browser-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .adblock-browser-icon.adblock-icon-abp,
    .adblock-browser-icon.adblock-icon-ublock {
        font-size: 10px;
    }
    
    .adblock-instruction-steps {
        padding-left: 20px;
    }
    
    .adblock-instruction-steps li {
        font-size: 14px;
    }
}

