/* ============================================
   MARNYL Studio - Referrals Tab Styles
   ============================================ */

/* Header */
.marnyl-referral-header {
    margin-bottom: 30px;
}

.marnyl-referral-header h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 10px;
}

.marnyl-referral-header p {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 5px 0;
}

.marnyl-referral-bonus {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-top: 10px !important;
}

/* Referral Link Card */
.marnyl-referral-link-card {
    background: #fff;
    border: 3px solid #000;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 6px 6px 0 #000;
}

.marnyl-referral-link-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 15px;
}

.marnyl-referral-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.marnyl-referral-input {
    flex: 1;
    padding: 12px 15px;
    background: #f5f5f5;
    border: 3px solid #000;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: #000;
}

.marnyl-referral-input:focus {
    outline: none;
    background: #fff;
}

.marnyl-referral-copy-btn {
    padding: 12px 30px;
    background: #ff69b4;
    border: 3px solid #000;
    color: #000;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.marnyl-referral-copy-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-referral-copy-btn:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.marnyl-referral-copy-feedback {
    color: #00cc00;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-top: 5px;
}

.marnyl-referral-copy-feedback.show {
    opacity: 1;
}

/* Stats Grid */
.marnyl-referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.marnyl-referral-stat-card {
    background: #fff;
    border: 3px solid #000;
    padding: 20px;
    text-align: center;
    box-shadow: 6px 6px 0 #000;
}

.marnyl-referral-stat-card h4 {
    font-size: 0.9rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marnyl-referral-stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 5px;
}

.marnyl-referral-stat-value.marnyl-referral-coins::after {
    content: ' $MRNL';
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff69b4;
    margin-left: 8px;
}

.marnyl-referral-stat-label {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 5px;
}

.marnyl-referral-breakdown {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 700;
}

/* Bonus Progress Card */
.marnyl-referral-bonus-card {
    background: #fff3cd;
    border: 3px solid #000;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 6px 6px 0 #000;
}

.marnyl-referral-bonus-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 15px;
}

.marnyl-referral-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.marnyl-referral-bonus-reward {
    color: #ff8c00;
    font-weight: 900;
}

.marnyl-referral-progress-bar {
    width: 100%;
    height: 30px;
    background: #fff;
    border: 3px solid #000;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.marnyl-referral-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    transition: width 0.5s ease;
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.5);
}

.marnyl-referral-progress-text {
    text-align: center;
    color: #ff8c00;
    font-size: 1rem;
    font-weight: 700;
}

/* Referrals List */
.marnyl-referral-list-section {
    background: #fff;
    border: 3px solid #000;
    padding: 25px;
    box-shadow: 6px 6px 0 #000;
}

.marnyl-referral-list-section h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 20px;
}

.marnyl-referral-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.marnyl-referral-empty {
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    font-size: 1rem;
    font-weight: 700;
}

.marnyl-referral-item {
    background: #f5f5f5;
    border: 3px solid #000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.marnyl-referral-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #000;
}

.marnyl-referral-info {
    flex: 1;
}

.marnyl-referral-username {
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 5px;
}

.marnyl-referral-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.marnyl-referral-status {
    padding: 8px 20px;
    border: 3px solid #000;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.marnyl-referral-status.status-active {
    background: #d4edda;
    color: #155724;
}

.marnyl-referral-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .marnyl-referral-header h2 {
        font-size: 1.5rem;
    }

    .marnyl-referral-link-container {
        flex-direction: column;
    }

    .marnyl-referral-copy-btn {
        width: 100%;
    }

    .marnyl-referral-stats-grid {
        grid-template-columns: 1fr;
    }

    .marnyl-referral-stat-value {
        font-size: 2rem;
    }

    .marnyl-referral-progress-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .marnyl-referral-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .marnyl-referral-stats {
        flex-direction: column;
        gap: 5px;
    }
}
