/**
 * Frontend CSS - Basic Styling
 * Path: assets/css/frontend.css
 */

/* Base Styles */
.anp-affiliate-dashboard,
.anp-merchant-dashboard,
.anp-marketplace,
.anp-register-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Dashboard Styles */
.anp-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.anp-stat {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.anp-stat h3 {
    font-size: 32px;
    margin: 0 0 5px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.anp-stat p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Marketplace Styles */
.anp-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.anp-offer-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.anp-offer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.anp-offer-card h3 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.anp-offer-card p {
    color: #6b7280;
    margin: 0 0 15px 0;
}

.anp-offer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.anp-commission {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Form Styles */
.anp-registration-form {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    max-width: 500px;
    margin: 30px auto;
}

.anp-form-group {
    margin-bottom: 20px;
}

.anp-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.anp-form-group input,
.anp-form-group select,
.anp-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.anp-form-group input:focus,
.anp-form-group select:focus,
.anp-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button Styles */
.anp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.anp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.anp-btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.anp-btn-outline {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.anp-btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .anp-affiliate-dashboard,
    .anp-merchant-dashboard,
    .anp-marketplace,
    .anp-register-form {
        padding: 15px;
    }
    
    .anp-quick-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .anp-offers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .anp-registration-form {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .anp-offer-details {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

/* Loading States */
.anp-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.anp-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: anp-spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes anp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.anp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.anp-empty-state h3 {
    font-size: 18px;
    color: #374151;
    margin-bottom: 8px;
}

.anp-empty-state p {
    margin-bottom: 20px;
}