/**
 * Blogger Monetization Styles
 * Файл: frontend/users_modules/blogger.css
 */

.monetization-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.monetization-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a202c;
}

.monetization-container h2 i {
    color: #48bb78;
    margin-right: 10px;
}

/* Статистика */
.monetization-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 14px;
    color: #718096;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
}

/* Секция промокода */
.promo-code-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.promo-code-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a202c;
}

.promo-code-section h3 i {
    color: #f56565;
    margin-right: 10px;
}

.promo-code-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.promo-code-box input {
    flex: 1;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    letter-spacing: 2px;
    color: #2d3748;
}

.promo-code-box button {
    padding: 12px 24px;
    white-space: nowrap;
}

.promo-hint {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.promo-hint span {
    color: #48bb78;
    font-weight: 600;
}

/* Табы */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #4a5568;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-btn i {
    margin-right: 8px;
}

/* Контент табов */
.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Таблицы */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f7fafc;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    color: #2d3748;
}

.data-table tbody tr:hover {
    background: #f7fafc;
}

.data-table .loading,
.data-table .no-data,
.data-table .error {
    text-align: center;
    padding: 40px;
    color: #a0aec0;
    font-style: italic;
}

.data-table .error {
    color: #f56565;
}

.text-success {
    color: #48bb78 !important;
    font-weight: 600;
}

.text-danger {
    color: #f56565 !important;
    font-weight: 600;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .monetization-stats {
        grid-template-columns: 1fr;
    }

    .promo-code-box {
        flex-direction: column;
    }

    .tabs {
        flex-direction: column;
        gap: 0;
    }

    .tab-btn {
        width: 100%;
        text-align: left;
        border-left: 3px solid transparent;
        border-bottom: none;
    }

    .tab-btn.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}
