.floating-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b, #ff466a);
    box-shadow: 0 -4px 15px rgba(255, 107, 107, 0.2);
    z-index: 1000;
    box-sizing: border-box;
}

.ad-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 12px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ad-content:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ad-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ad-text {
    flex: 0 1 auto;
}

.ad-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ad-description {
    font-size: 13px;
    opacity: 0.95;
    color: #fff;
}

.ad-button {
    background: #ffeb3b;
    color: #333;
    padding: 6px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    font-size: 13px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 235, 59, 0.4);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 2;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) rotate(90deg);
}

@media screen and (max-width: 768px) {
    .ad-content {
        padding: 10px 40px;
    }
    
    .ad-inner {
        gap: 15px;
        width: 100%;
    }
    
    .ad-text {
        flex: 1;
    }
    
    .ad-title {
        font-size: 14px;
    }
    
    .ad-description {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .ad-button {
        padding: 5px 15px;
        font-size: 12px;
        min-width: 80px;
    }
}

@media screen and (max-width: 480px) {
    .floating-ad {
        padding: 0;
    }

    .ad-content {
        padding: 10px 32px 10px 15px;
    }
    
    .ad-inner {
        flex-direction: row;
        gap: 12px;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .ad-text {
        text-align: left;
        padding-right: 0;
        flex: 1;
    }
    
    .ad-title {
        font-size: 13px;
        margin-bottom: 1px;
    }
    
    .ad-description {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .ad-button {
        padding: 4px 12px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .close-btn {
        right: 5px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 360px) {
    .ad-content {
        padding: 8px 28px 8px 10px;
    }
    
    .ad-inner {
        gap: 8px;
    }
    
    .ad-title {
        font-size: 12px;
    }
    
    .ad-description {
        font-size: 10px;
    }
    
    .ad-button {
        padding: 3px 10px;
        font-size: 10px;
    }
} 