/**
 * Advanced User Manager - Public Styles
 * Frontend user-facing styles
 */

/* ==========================================================================
   User Profile Enhancements
   ========================================================================== */

.aum-profile-section {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aum-profile-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ==========================================================================
   User Login Form Styles
   ========================================================================== */

.aum-login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aum-login-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.aum-form-group {
    margin-bottom: 20px;
}

.aum-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.aum-form-group input[type="text"],
.aum-form-group input[type="password"],
.aum-form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.aum-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.aum-submit-button {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.aum-submit-button:hover {
    background: #005a87;
}

.aum-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ==========================================================================
   User Registration Form
   ========================================================================== */

.aum-registration-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.aum-registration-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.aum-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* ==========================================================================
   User Dashboard Widget
   ========================================================================== */

.aum-user-dashboard {
    padding: 20px;
}

.aum-user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.aum-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.aum-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.aum-stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: #0073aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.aum-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.aum-stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   User Activity Timeline
   ========================================================================== */

.aum-activity-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.aum-timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
    border-left: 2px solid #e0e0e0;
}

.aum-timeline-item:last-child {
    border-left-color: transparent;
}

.aum-timeline-icon {
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: #0073aa;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0073aa;
}

.aum-timeline-content {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aum-timeline-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.aum-timeline-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.aum-timeline-description {
    color: #666;
    font-size: 14px;
}

/* ==========================================================================
   Error and Success Messages
   ========================================================================== */

.aum-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aum-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.aum-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.aum-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.aum-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==========================================================================
   Responsive Design for Public Pages
   ========================================================================== */

@media screen and (max-width: 768px) {
    .aum-login-form,
    .aum-registration-form {
        margin: 20px;
        padding: 20px;
    }
    
    .aum-form-row {
        grid-template-columns: 1fr;
    }
    
    .aum-user-stats {
        grid-template-columns: 1fr;
    }
    
    .aum-timeline-item {
        padding-left: 30px;
    }
}

@media screen and (max-width: 480px) {
    .aum-stat-card {
        padding: 15px;
    }
    
    .aum-stat-value {
        font-size: 24px;
    }
    
    .aum-login-form,
    .aum-registration-form {
        padding: 15px;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .aum-profile-section,
    .aum-login-form,
    .aum-registration-form,
    .aum-stat-card,
    .aum-timeline-content {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .aum-profile-section h3,
    .aum-login-form h2,
    .aum-registration-form h2,
    .aum-stat-value,
    .aum-timeline-title {
        color: #fff;
    }
    
    .aum-form-group input {
        background: #2a2a2a;
        color: #e0e0e0;
        border-color: #444;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.aum-text-center {
    text-align: center;
}

.aum-mt-20 {
    margin-top: 20px;
}

.aum-mb-20 {
    margin-bottom: 20px;
}

.aum-hidden {
    display: none;
}

.aum-clearfix::after {
    content: "";
    display: table;
    clear: both;
}
