/* AD Sites Notice - CSS - Simplified High-Convert Design */
.ad-sites-floater {

    position: fixed;
    bottom: calc(20%);
    right: 0;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Main Trigger Button */
.ad-sites-trigger {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 1em;
    height: 50px;
    background: linear-gradient(70deg, #0dafff 10%, #0c70a1 90%);
    color: white;
    border: none;
    border-radius: 4px 0 0 4px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ad-sites-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 124, 186, 0.5);
    background: linear-gradient(120deg, #006ba1 20%, #004a70 80%);
}

.ad-sites-trigger:active {
    transform: translateY(0);
}

.ad-sites-trigger:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Pulse Animation */
.ad-sites-trigger.pulse {
    animation: ad-sites-pulse 3s infinite;
}

@keyframes ad-sites-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 124, 186, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 124, 186, 0.8);
    }

    100% {
        box-shadow: 0 4px 20px rgba(0, 124, 186, 0.4);
    }
}

/* Trigger Icon & Text */
.ad-sites-trigger-icon {
    font-size: 30px;
    line-height: 1;
}

.ad-sites-trigger-icon img {

    height: 60px;
}

.ad-sites-trigger-text {

    font-size: 0.8rem;
    font-weight: 600;
}

.ad-sites-trigger-arrow {
    font-size: 18px;
    line-height: 1;
}

/* Close State */
.ad-sites-trigger.close-state {
    min-width: 56px;
    width: 56px;
    padding: 0;
    background-color: #666;
}

.ad-sites-trigger.close-state:hover {
    background: #333;
    transform: translateY(-2px);
}

.ad-sites-trigger.close-state .ad-sites-trigger-icon {
    font-size: 24px;
}

.ad-sites-trigger.close-state .ad-sites-trigger-text,
.ad-sites-trigger.close-state .ad-sites-trigger-arrow {
    display: none;
}

/* Modal */
.ad-sites-modal {

    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    width: 400px;
    max-width: calc(100vw - 60px);
    background: white;
    border-radius: 1em 0 0 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid #e0e0e0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000000;
    overflow: hidden;
}

.ad-sites-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ad-sites-modal-header {

    padding: 0;
    position: relative;
}

.ad-sites-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.ad-sites-modal-close:hover,
.ad-sites-modal-close:focus {
    background: #f0f0f0;
    color: #333;
    outline: none;
}

.ad-sites-modal-header img {

    width: calc(100% + 20px);
    height: 200px;
    display: block;
}

.ad-sites-modal-content {

    padding: 0.8em;
}

.ad-sites-modal-content h4 {
    
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 0.8em;
}

.ad-sites-modal-content p {

    margin-bottom: 0.8em;
    margin-top: 0;
}

.ad-sites-modal-content p:last-child {
    
    margin-bottom: 0;
}

/* Features List */
.ad-sites-features {

    margin: 0.8em 0;
    padding: 0;
    list-style: none;
}

.ad-sites-features li {

    padding: 0.1em 0 0 1em;
    position: relative;
}

.ad-sites-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007cba;
    font-weight: bold;
}

/* Buttons */
.ad-sites-buttons {

    display: flex;
    gap: 10px;
    margin-top: 1em;
}

.ad-sites-button {
    
    padding: 0.5em 1em;
    font-weight: 700;
    display: block;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.ad-sites-button-primary {

    background-color: #174;
    color: white;
}

.ad-sites-button-primary:hover,
.ad-sites-button-primary:focus {

    background-color: #052;
    color: white;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.ad-sites-button-secondary {

    color: #1a1a1a;
}

.ad-sites-button-secondary:hover,
.ad-sites-button-secondary:focus {
    background: #e9ecef;
    outline: none;
    transform: translateY(-2px);
}

/* Mobile Styles */
@media (max-width: 767px) {
    .ad-sites-floater {
        bottom: 20px;
        right: 15px;
        left: 15px;
        display: flex;
        justify-content: flex-end;
    }

    .ad-sites-trigger {
        min-width: auto;
        width: auto;
        max-width: 300px;
        margin-left: auto;
    }

    .ad-sites-modal {
        right: 0;
        left: 0;
        margin: 0 auto;
        width: calc(100% - 30px);
        max-width: 400px;
    }

    .ad-sites-modal-content {
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Bottom sheet style for mobile */
    .ad-sites-modal {
        width: calc(100% - 40px);
        max-height: 80vh;
    }

    .ad-sites-modal.active {
        /*transform: translate(-50%, -50%) scale(1);*/
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ad-sites-trigger {
        padding: 0 16px;
        height: 52px;
    }

    .ad-sites-trigger-text {
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ad-sites-modal {
        background: #1e1e1e;
        border-color: #333;
    }

    .ad-sites-modal-header {
        border-color: #333;
    }

    .ad-sites-modal-header h4 {
        color: #fff;
    }

    .ad-sites-modal-content p {
        color: #ccc;
    }

    .ad-sites-features li {
        color: #ccc;
    }

    .ad-sites-button-secondary {
        background: #333;
        color: #fff;
        border-color: #444;
    }

    .ad-sites-button-secondary:hover {
        background: #444;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .ad-sites-floater,
    .ad-sites-trigger,
    .ad-sites-modal,
    .ad-sites-button {
        transition: none;
    }

    .ad-sites-trigger.pulse {
        animation: none;
        box-shadow: 0 4px 20px rgba(0, 124, 186, 0.4);
    }
}

/* Mobile body scroll lock */
body.ad-sites-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    body.ad-sites-modal-open {
        position: static;
        overflow: auto;
    }
}
