/* assets/css/surf.css */
.surf-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    margin-top: -20px;
}

.surf-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 20px 0;
}

.site-frame {
    width: 100%;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.site-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.timer {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.timer.finished {
    color: #48bb78;
    background: #48bb78;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 1s linear;
    border-radius: 4px;
}

.site-info {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-align: left;
}

.site-info h2 {
    margin-bottom: 10px;
    color: #667eea;
}

.site-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.skip-btn {
    background: rgba(245, 101, 101, 0.2);
    border: 1px solid rgba(245, 101, 101, 0.3);
    color: #f56565;
}

.skip-btn:hover {
    background: rgba(245, 101, 101, 0.3);
    transform: translateY(-2px);
}

/* Анимация завершения таймера */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timer.finished {
    animation: pulse 1s infinite;
}

/* Индикатор загрузки */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .surf-card {
        padding: 20px;
        margin: 10px 0;
    }
    
    .site-frame {
        height: 400px;
    }
    
    .timer {
        font-size: 2.5em;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
