/**
 * GMA Membership - Frontend Styles
 */

/* Variables */
:root {
    --gmam-primary: #667eea;
    --gmam-secondary: #764ba2;
    --gmam-success: #48bb78;
    --gmam-danger: #fe2c55;
    --gmam-warning: #ecc94b;
    --gmam-dark: #1a1a2e;
    --gmam-darker: #0f0f1a;
    --gmam-text: #ffffff;
    --gmam-text-muted: rgba(255,255,255,0.6);
    --gmam-border: rgba(255,255,255,0.1);
}

/* XP Popup */
.xp-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--gmam-primary), var(--gmam-secondary));
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 99999;
    animation: slideIn 0.3s ease;
}

.xp-popup.hide {
    animation: slideOut 0.3s ease forwards;
}

.xp-popup .xp-amount {
    font-size: 24px;
    font-weight: 700;
}

.xp-popup .xp-label {
    font-size: 14px;
    opacity: 0.9;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Status Badges */
.gmam-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.gmam-status.success {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

.gmam-status.warning {
    background: rgba(236, 201, 75, 0.2);
    color: #ecc94b;
}

.gmam-status.error {
    background: rgba(254, 44, 85, 0.2);
    color: #fe2c55;
}

/* Loading Spinner */
.gmam-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Buttons */
.gmam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.gmam-btn-primary {
    background: linear-gradient(135deg, var(--gmam-primary), var(--gmam-secondary));
    color: #fff;
}

.gmam-btn-primary:hover {
    opacity: 0.9;
}

.gmam-btn-outline {
    background: transparent;
    border: 1px solid var(--gmam-border);
    color: var(--gmam-text);
}

.gmam-btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Forms */
.gmam-form-group {
    margin-bottom: 16px;
}

.gmam-form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--gmam-text-muted);
    font-size: 14px;
}

.gmam-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gmam-border);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--gmam-text);
    font-size: 15px;
    transition: all 0.3s;
}

.gmam-form-input:focus {
    outline: none;
    border-color: var(--gmam-primary);
    background: rgba(255,255,255,0.08);
}

.gmam-form-input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Cards */
.gmam-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--gmam-border);
    border-radius: 16px;
    padding: 24px;
}

.gmam-card-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gmam-border);
}

.gmam-card-title {
    font-size: 18px;
    font-weight: 600;
}

/* Alert Messages */
.gmam-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.gmam-alert-success {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #48bb78;
}

.gmam-alert-error {
    background: rgba(254, 44, 85, 0.1);
    border: 1px solid rgba(254, 44, 85, 0.3);
    color: #fe2c55;
}

.gmam-alert-warning {
    background: rgba(236, 201, 75, 0.1);
    border: 1px solid rgba(236, 201, 75, 0.3);
    color: #ecc94b;
}

/* Responsive */
@media (max-width: 768px) {
    .gmam-btn {
        width: 100%;
    }
}
