/**
 * WP Ad Rotator Public Styles
 *
 * @package   WP_Ad_Rotator
 * @author    Your Name
 * @license   GPL-2.0+
 */

/* Ad Container */
.wp-ad-rotator-container {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 100%;
    line-height: 0;
    overflow: hidden;
}

/* Banner */
.wp-ad-rotator-banner {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    position: relative;
    transition: all 0.3s ease;
}

.wp-ad-rotator-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Button styling for banner links */
.war-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #1184ce 0%, #0068a0 100%);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 3px 6px rgba(0,104,160,0.2);
    margin: 18px auto 8px;
    cursor: pointer;
    border: none;
    line-height: 1.4;
    width: auto;
    max-width: 220px;
    min-width: 160px;
}

.war-btn:hover, 
.war-btn:focus {
    background: linear-gradient(135deg, #0A75B9 0%, #005789 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,104,160,0.25);
    color: #fff !important;
    text-decoration: none !important;
}

.war-btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #d5d7db;
    color: #3c434a !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.war-btn-secondary:hover,
.war-btn-secondary:focus {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f1f2 100%);
    border-color: #c0c4cc;
    color: #3c434a !important;
}

/* Override WP Button Styles */
.wp-ad-rotator-container .button,
.wp-ad-rotator-container .button-primary,
.wp-ad-rotator-container .button-secondary {
    all: unset;
    box-sizing: border-box;
}

/* Loading Indicator */
.wp-ad-rotator-loading {
    width: 32px;
    height: 32px;
    margin: 20px auto;
    border-radius: 50%;
    border: 2px solid rgba(17, 132, 206, 0.1);
    border-top: 2px solid #1184ce;
    animation: wp-ad-rotator-spin 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

@keyframes wp-ad-rotator-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lucide Icons */
.lucide {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
}

/* Button span spacing */
.war-btn .lucide {
    width: 18px;
    height: 18px;
    margin-right: 0;
    stroke-width: 2;
}

.war-btn span {
    margin-left: 8px;
}

.wp-ad-rotator-container .lucide-info {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.4);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
    stroke-width: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-ad-rotator-container .lucide-info:hover {
    color: #fff;
    background: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

/* Enhanced link styling */
.wp-ad-rotator-link {
    display: block;
    position: relative;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .war-btn {
        padding: 10px 18px;
        font-size: 13px;
        margin: 14px auto 6px;
        min-width: 140px;
    }
    
    .wp-ad-rotator-container .lucide-info {
        bottom: 10px;
        right: 10px;
        padding: 6px;
        width: 16px;
        height: 16px;
    }
}