/* Frontend Styles for Scrolling Disclaimer Pro */

.sdp-disclaimer {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 20px;
    border: 3px solid;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* Position Styles */
.sdp-position-top {
    top: 0;
}

.sdp-position-bottom {
    bottom: 0;
}

.sdp-position-middle {
    position: relative;
    margin: 30px auto;
    max-width: 900px;
    border-radius: 8px;
}

/* Content Container */
.sdp-content {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Scrolling Text */
.sdp-scrolling-text {
    position: absolute;
    white-space: nowrap;
    animation: sdpScroll 8s linear infinite;
    font-weight: 500;
}

@keyframes sdpScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause on hover */
.sdp-disclaimer:hover .sdp-scrolling-text {
    animation-play-state: paused;
}

/* Close Button */
.sdp-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: inherit;
    font-size: 24px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.sdp-close:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.sdp-close:active {
    transform: translateY(-50%) scale(0.95);
}

/* Hidden State */
.sdp-disclaimer.sdp-hidden {
    display: none;
}

/* Body Padding Adjustments */
body.sdp-has-top {
    padding-top: 70px;
}

body.sdp-has-bottom {
    padding-bottom: 70px;
}

body.sdp-has-both {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .sdp-disclaimer {
        padding: 0 15px;
    }
    
    .sdp-scrolling-text {
        font-size: 13px !important;
    }
    
    .sdp-close {
        width: 28px;
        height: 28px;
        font-size: 20px;
        right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .sdp-disclaimer {
        padding: 0 10px;
    }
    
    .sdp-scrolling-text {
        font-size: 12px !important;
    }
    
    .sdp-close {
        width: 24px;
        height: 24px;
        font-size: 18px;
        right: 8px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .sdp-scrolling-text {
        animation: none;
        position: static;
        text-align: center;
    }
}

/* Print */
@media print {
    .sdp-disclaimer {
        display: none;
    }
}