/* ========================================
   Referral/Partners Page Styles
   Based on Figma Design
   ======================================== */

/* Page-specific styles - common layout moved to pages-common.css */

/* Referral Link Box */
.referral-link-container {
    position: relative;
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.referral-link-url {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Copy button uses global .copy-btn class from ui-kit.css */

/* Referral Description */
.referral-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-bottom: var(--spacing-lg);
}

.referral-divider {
    width: 100%;
    height: 0;
    border-top: 1px solid var(--color-border-dark);
    margin: var(--spacing-lg) 0;
}

.referral-note {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
}

/* Right Column - Statistics */
.referral-stats-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
}

.referral-stats-list {
    display: flex;
    flex-direction: column;
}

.referral-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.referral-stat-item:last-child {
    border-bottom: none;
    font-weight: var(--font-weight-medium);
}

.referral-stat-label {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: #656D77;
}

.referral-stat-item:last-child .referral-stat-label {
    color: var(--color-text-primary);
}

.referral-stat-value {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    text-align: right;
}

/* Referrals Table - Column Widths */
.referrals-table th:nth-child(1) { width: 50px; }   /* ID */
.referrals-table th:nth-child(2) { width: 256px; }  /* Реферал */
.referrals-table th:nth-child(3) { flex: 1; }       /* Дата регистрации */
.referrals-table th:nth-child(4) { flex: 1; }       /* Получено с реферала */

/* Responsive Design */
@media (max-width: 1200px) {
    .referral-grid {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 1024px) {
    .referral-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .referral-page-title {
        font-size: 24px;
        line-height: 29px;
    }
    
}

@media (max-width: 480px) {
    .referral-link-container {
        height: auto;
        min-height: 56px;
        padding: var(--spacing-md);
    }
    
    .referral-link-url {
        word-break: break-all;
        white-space: normal;
    }
}
