/**
 * Vigthoria Operator - Affiliate System Styles
 * Responsive design following the application's dynamic positioning system
 */

/* Affiliate Promotion Section (Landing Page) */
.affiliate-promotion {
    background: linear-gradient(135deg, rgba(26, 30, 60, 0.8), rgba(42, 49, 100, 0.8));
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.affiliate-promotion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/grid-pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.affiliate-promotion h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #00d4ff, #7e0fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    padding: 0 1rem;
}

.affiliate-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.affiliate-info {
    flex: 1;
}

.affiliate-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #e1e6f9;
}

.affiliate-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #9a9fbc;
    line-height: 1.6;
}

.affiliate-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.affiliate-benefits li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    color: #e1e6f9;
}

.check-icon {
    position: absolute;
    left: 0;
    color: #00ff9e;
    font-weight: bold;
}

.affiliate-cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #00d4ff, #7e0fff);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.affiliate-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.affiliate-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.affiliate-image img {
    max-width: 100%;
    height: auto;
}

/* Placeholder SVG until real graphic is created */
.affiliate-image svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* Responsive Design - Following existing layout system */
@media (max-width: 1024px) {
    .affiliate-content {
        gap: 2rem;
    }
    
    .affiliate-info h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .affiliate-promotion {
        padding: 2rem 1.5rem;
        margin: 3rem 0;
    }
    
    .affiliate-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .affiliate-info, .affiliate-image {
        width: 100%;
    }
    
    .affiliate-image {
        order: -1; /* Show image first on mobile */
    }
}

@media (max-width: 480px) {
    .affiliate-promotion {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }
    
    .affiliate-info h3 {
        font-size: 1.4rem;
    }
    
    .affiliate-info p {
        font-size: 1rem;
    }
    
    .affiliate-cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Affiliate Dashboard Styles - Additional responsive adjustments */
.affiliate-dashboard .stat-card,
.affiliate-dashboard .chart-container,
.affiliate-dashboard .affiliate-link-section,
.affiliate-dashboard .referrals-list,
.affiliate-dashboard .payout-section {
    transition: transform 0.3s, box-shadow 0.3s;
}

.affiliate-dashboard .stat-card:hover,
.affiliate-dashboard .chart-container:hover,
.affiliate-dashboard .affiliate-link-section:hover,
.affiliate-dashboard .referrals-list:hover,
.affiliate-dashboard .payout-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Ensure responsive layout for smaller screens */
@media (max-width: 1024px) {
    .affiliate-dashboard {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .affiliate-dashboard {
        padding: 1rem;
    }
    
    .affiliate-dashboard .chart-container {
        height: auto;
    }
    
    .affiliate-dashboard .chart-content {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .affiliate-dashboard {
        padding: 0.5rem;
    }
    
    .affiliate-dashboard .stat-card {
        padding: 1rem;
    }
    
    .affiliate-dashboard .chart-content {
        height: 180px;
    }
}

/* Table empty states */
.empty-state td {
    text-align: center;
}
