/* ===== AFFILIATION TAB STYLES ===== */

/* Stats Top Section */
.affiliation-stats-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-top {
    background-color: #1e3a5f;
    border: 1px solid #2a4a70;
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
}

.stat-card-top:hover {
    transform: translateY(-5px);
    border-color: #3a5a80;
}

.stat-number-large {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 48px;
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0;
}

.stat-label-large {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Affiliation Link Section */
.affiliation-link-section {
    margin-bottom: 40px;
}

/* Unified Container */
.affiliation-unified-container {
    background-color: #1e3a5f;
    border: 1px solid #2a4a70;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Referral Link Row */
.referral-link-row {
    display: flex;
    gap: 10px;
    align-items: center;
    background-color: #152844;
    border: 1px solid #2a4a70;
    border-radius: 12px;
    padding: 16px 20px;
}

.referral-link-input {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none;
    padding: 0;
}

.btn-copy-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #2a4a70;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Share Container */
.share-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-share {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 12px 40px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.share-social-icons-inline {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: 10px;
}

.share-social-icons-inline i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-social-icons-inline i:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* How it Works Section */
.how-it-works-section {
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 40px;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.work-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: #1e3a5f;
    border: 1px solid #2a4a70;
    border-radius: 16px;
    padding: 30px 20px;
}

.step-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(70, 90, 126, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.step-arrow {
    font-size: 28px;
    color: rgba(83, 140, 255, 0.8);
    flex-shrink: 0;
}

.work-step:last-child + .step-arrow {
    display: none;
}

.step-content {
    flex: 1;
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 12px;
}

.step-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Referral History Section */
.referral-history-section {
    margin-top: 50px;
}

.section-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
}

/* Empty State */
.referral-empty-state {
    background-color: #1e3a5f;
    border: 1px solid #2a4a70;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(70, 90, 126, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}

.empty-state-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
}

.empty-state-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.btn-copy-my-link {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 14px 35px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-copy-my-link:hover {
    border-color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-copy-my-link i {
    font-size: 16px;
}

/* Referral History List (hidden by default) */
.referral-history-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.referral-history-item {
    background-color: #1e3a5f;
    border: 1px solid #2a4a70;
    border-radius: 8px;
    padding: 18px 25px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

.referral-history-item:hover {
    background-color: #25456f;
    border-color: #3a5a80;
}

.referral-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 100px;
}

.referral-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    min-width: 120px;
}

.referral-status {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    min-width: 140px;
}

.referral-status.registered {
    color: #4ade80;
}

.referral-status.received {
    color: rgba(255, 255, 255, 0.6);
}

.referral-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.reward-ticket-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.reward-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .affiliation-stats-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .step-arrow {
        display: none;
    }
}

@media (max-width: 992px) {
    /* Stats - Stack vertically */
    .affiliation-stats-top {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card-top {
        padding: 20px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
    }
    
    .stat-number-large {
        font-size: 40px;
    }
    
    .stat-label-large {
        font-size: 13px;
    }
    
    /* Referral Link - Better mobile */
    .affiliation-unified-container {
        padding: 15px;
    }
    
    .referral-link-row {
        padding: 12px 15px;
    }
    
    .referral-link-input {
        font-size: 12px;
        word-break: break-all;
    }
    
    .btn-copy-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    /* Share Container */
    .share-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-share {
        width: 100%;
    }
    
    .share-social-icons-inline {
        width: 100%;
        justify-content: space-around;
        padding: 12px 0;
    }
    
    /* How it Works */
    .how-it-works-section {
        margin-bottom: 30px;
    }
    
    .steps-container {
        gap: 25px;
    }
    
    .work-step {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .step-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .step-content {
        flex: 1;
    }
    
    .step-number {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .step-description {
        font-size: 13px;
    }
    
    /* Referral History */
    .referral-history-section {
        margin-bottom: 30px;
    }
    
    .referral-history-list {
        gap: 10px;
    }
    
    .referral-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .referral-info {
        width: 100%;
    }
    
    .referral-name {
        font-size: 14px;
    }
    
    .referral-date {
        font-size: 12px;
    }
    
    .referral-badge {
        align-self: flex-start;
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 992px) {
    /* Stats - Stack vertically */
    .affiliation-stats-top {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card-top {
        padding: 20px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
    }
    
    .stat-number-large {
        font-size: 40px;
    }
    
    .stat-label-large {
        font-size: 13px;
    }
    
    /* Referral Link - Better mobile */
    .affiliation-unified-container {
        padding: 15px;
    }
    
    .referral-link-row {
        padding: 12px 15px;
    }
    
    .referral-link-input {
        font-size: 12px;
        word-break: break-all;
    }
    
    .btn-copy-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
        flex-shrink: 0;
    }
    
    /* Share Container */
    .share-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-share {
        width: 100%;
    }
    
    .share-social-icons-inline {
        width: 100%;
        justify-content: space-around;
        padding: 12px 0;
    }
    
    /* How it Works */
    .how-it-works-section {
        margin-bottom: 30px;
    }
    
    .steps-container {
        gap: 25px;
    }
    
    .work-step {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .step-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .step-content {
        flex: 1;
    }
    
    .step-number {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .step-description {
        font-size: 13px;
    }
    
    /* Referral History */
    .referral-history-section {
        margin-bottom: 30px;
    }
    
    .referral-history-list {
        gap: 10px;
    }
    
    .referral-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .referral-info {
        width: 100%;
    }
    
    .referral-name {
        font-size: 14px;
    }
    
    .referral-date {
        font-size: 12px;
    }
    
    .referral-badge {
        align-self: flex-start;
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .affiliation-link-section {
        padding: 20px;
    }
    
    .referral-link-container {
        padding: 12px 15px;
    }
    
    .referral-link-input {
        font-size: 12px;
    }
    
    .btn-share-main {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .share-social-icons-inline {
        justify-content: center;
    }
    
    .referral-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 18px 20px;
    }
    
    .stat-number-large {
        font-size: 36px;
    }
    
    .stat-card-top {
        padding: 25px 20px;
    }
    
    .step-icon-circle {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .empty-state-icon {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .referral-empty-state {
        padding: 40px 20px;
    }
    
    .empty-state-title {
        font-size: 20px;
    }
    
    .empty-state-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile */
    .affiliation-stats-top {
        gap: 10px;
    }
    
    .stat-card-top {
        padding: 15px;
        gap: 15px;
    }
    
    .stat-number-large {
        font-size: 32px;
    }
    
    .stat-label-large {
        font-size: 12px;
    }
    
    .affiliation-unified-container {
        padding: 12px;
        gap: 12px;
    }
    
    .referral-link-row {
        padding: 10px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .referral-link-input {
        font-size: 11px;
        text-align: center;
    }
    
    .btn-copy-link {
        width: 100%!important;
        height: 44px;
    }
    
    .share-social-icons-inline i {
        font-size: 18px;
    }
    
    .step-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .step-number {
        font-size: 12px;
    }
    
    .step-description {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .referral-history-item {
        padding: 12px;
    }
    
    .referral-name {
        font-size: 13px;
    }
    
    .referral-date {
        font-size: 11px;
    }
    
    .referral-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
}

