/* Advertisement Blocks Styles */
.ad-block {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ad-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: rotate(45deg);
    animation: adShine 3s infinite;
}

@keyframes adShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.ad-block:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.ad-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.ad-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    animation: titlePulse 2s infinite;
}

@keyframes titlePulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

.ad-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    line-height: 1.4;
}

.ad-button {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    border: none;
    cursor: pointer;
}

.ad-button:hover {
    background: linear-gradient(135deg, #00e5ff, #00b3d4);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.ad-animation {
    width: 100%;
    height: 150px;
    margin: 16px 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ad-animation .loading-text {
    font-size: 1.2rem;
    color: #00d4ff;
    animation: loadingBounce 1.5s infinite;
}

@keyframes loadingBounce {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Rudvor specific styles */
.rudvor-ad .ad-title {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rudvor-ad .ad-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.rudvor-ad .ad-button:hover {
    background: linear-gradient(135deg, #ff7b7b, #ff6a3a);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Tentrovox specific styles */
.tentrovox-ad .ad-title {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tentrovox-ad .ad-button {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    box-shadow: 0 4px 15px rgba(162, 155, 254, 0.3);
}

.tentrovox-ad .ad-button:hover {
    background: linear-gradient(135deg, #b2abfe, #7c6ef7);
    box-shadow: 0 6px 20px rgba(162, 155, 254, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .ad-block {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .ad-title {
        font-size: 1.2rem;
    }
    
    .ad-description {
        font-size: 0.85rem;
    }
    
    .ad-animation {
        height: 120px;
    }
}

/* Telegram Channel Block */
.telegram-block {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.telegram-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: rotate(45deg);
    animation: telegramShine 3s infinite;
}

@keyframes telegramShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.telegram-block:hover {
    border-color: rgba(0, 136, 204, 0.6);
    box-shadow: 0 0 25px rgba(0, 136, 204, 0.4), 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.telegram-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.telegram-animation {
    width: 100%;
    height: 80px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.telegram-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0088cc;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 136, 204, 0.5);
}

.telegram-link {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #0088cc, #006699);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    border: none;
    cursor: pointer;
}

.telegram-link:hover {
    background: linear-gradient(135deg, #0099dd, #0077aa);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
    transform: translateY(-2px);
}

/* Telegram Logo Animation */
.telegram-logo-container {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.telegram-paper-plane {
    width: 40px;
    height: 40px;
    position: relative;
    animation: telegramFly 2s infinite ease-in-out;
}

.telegram-paper-plane::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid #0088cc;
    top: 5px;
    left: 0;
    filter: drop-shadow(0 5px 15px rgba(0, 136, 204, 0.6));
}

.telegram-paper-plane::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid white;
    top: 15px;
    left: 4px;
}

@keyframes telegramFly {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.telegram-trail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.telegram-trail-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #0088cc;
    border-radius: 50%;
    animation: telegramTrail 2s infinite ease-in-out;
    opacity: 0;
}

.telegram-trail-dot:nth-child(1) {
    top: 30%;
    right: -10px;
    animation-delay: 0s;
}

.telegram-trail-dot:nth-child(2) {
    top: 50%;
    right: -20px;
    animation-delay: -0.2s;
}

.telegram-trail-dot:nth-child(3) {
    top: 70%;
    right: -30px;
    animation-delay: -0.4s;
}

@keyframes telegramTrail {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
        transform: translateX(-20px);
    }
}

.telegram-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.telegram-wave {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 136, 204, 0.3);
    border-radius: 50%;
    animation: telegramWave 3s infinite ease-out;
}

.telegram-wave:nth-child(1) {
    animation-delay: 0s;
}

.telegram-wave:nth-child(2) {
    animation-delay: -1s;
    border-color: rgba(0, 102, 153, 0.2);
}

@keyframes telegramWave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .telegram-block {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .telegram-title {
        font-size: 1.1rem;
    }
    
    .telegram-animation {
        height: 60px;
    }
}
