
/* ========================================
   Инструмент: Посещаемость сайта
   ======================================== */

.site-statistics-tool {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-stats-input-section {
    margin-bottom: 25px;
}

.site-stats-input-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.site-stats-input-group {
    display: flex;
    gap: 10px;
}

.site-stats-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.site-stats-input-group input:focus {
    outline: none;
    border-color: #0066cc;
}

.site-stats-input-group button {
    padding: 12px 30px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.site-stats-input-group button:hover {
    background: #0052a3;
}

/* Капча скрыта по умолчанию */
.site-stats-captcha-section {
    display: none;
}

/* Результаты */
.site-stats-results {
    display: none;
    margin-top: 25px;
}

.site-stats-result-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.stats-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.stats-header h3 {
    font-size: 22px;
    color: #333;
    margin: 0;
}

.stats-header .domain-name {
    color: #0066cc;
    font-weight: 700;
}

.stats-availability {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 20px;
}

.stats-availability.success {
    background: #d4edda;
    color: #155724;
}

.stats-availability.error {
    background: #f8d7da;
    color: #721c24;
}

.stats-main-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stats-item {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

.stats-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stats-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.stats-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.stats-section h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.traffic-sources,
.top-countries {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
}

.traffic-source-item,
.country-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.traffic-source-item:last-child,
.country-item:last-child {
    border-bottom: none;
}

.source-name,
.country-name {
    font-weight: 600;
    color: #333;
}

.source-value,
.country-value {
    color: #0066cc;
    font-weight: 700;
}

.additional-info {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
}

.additional-info p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Ошибка */
.site-stats-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
}

.site-stats-error i {
    font-size: 48px;
    color: #721c24;
    margin-bottom: 15px;
}

.site-stats-error p {
    color: #721c24;
    margin: 0;
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 1400px) {
    .site-stats-input-group {
        gap: 8px;
    }
    
    .stats-main-info {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 1200px) {
    .site-statistics-tool {
        padding: 25px;
    }
}

@media (max-width: 991px) {
    .stats-main-info {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 810px) {
    .site-stats-input-group {
        flex-direction: column;
    }
    
    .site-stats-input-group button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-statistics-tool {
        padding: 20px;
    }
    
    .stats-main-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .stats-header h3 {
        font-size: 20px;
    }
    
    .stats-value {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .site-statistics-tool {
        padding: 15px;
    }
    
    .site-stats-result-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stats-header h3 {
        font-size: 18px;
    }
    
    .stats-section h4 {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .site-stats-input-group input,
    .site-stats-input-group button {
        font-size: 14px;
        padding: 10px 12px;
    }
}

@media (max-width: 375px) {
    .site-statistics-tool {
        padding: 12px;
    }
}

@media (max-width: 360px) {
    .stats-item {
        padding: 12px;
    }
}

@media (max-width: 320px) {
    .site-stats-result-card {
        padding: 15px;
    }
    
    .stats-value {
        font-size: 16px;
    }
}


