/* {{RIPER-5:
  Action: "Added"
  Task_ID: "Component-Styles"
  Timestamp: "2025-10-31"
  Authoring_Role: "LD"
  Principle_Applied: "Aether-Design-Universal-Softness, Aether-Engineering-SOLID"
  Quality_Check: "All components follow rounded-2xl/rounded-full rules"
}} */

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-2xl);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-primary);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-2xl);
}

.btn-hint {
    background: rgba(67, 233, 123, 0.1);
    color: var(--color-accent-green);
    border: 1px solid rgba(67, 233, 123, 0.3);
}

.btn-hint:hover {
    background: rgba(67, 233, 123, 0.2);
}

/* ====================================
   BADGES
   ==================================== */

.badge-easy,
.badge-medium,
.badge-hard {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-easy {
    background: rgba(67, 233, 123, 0.2);
    color: var(--color-accent-green);
    border: 1px solid rgba(67, 233, 123, 0.4);
}

.badge-medium {
    background: rgba(240, 147, 251, 0.2);
    color: var(--color-accent-pink);
    border: 1px solid rgba(240, 147, 251, 0.4);
}

.badge-hard {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.4);
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-sm);
}

/* ====================================
   CARDS
   ==================================== */

.feature-card {
    padding: var(--space-xl);
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-2xl);
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.stat-card {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-content {
    flex: 1;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-subtext {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ====================================
   INPUTS & TEXTAREAS
   ==================================== */

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    outline: none;
}

input:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent-purple);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.challenge-textarea {
    min-height: 200px;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* ====================================
   AVATARS
   ==================================== */

.user-avatar,
.mentor-avatar,
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(240, 147, 251, 0.3);
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    margin: 0 auto var(--space-lg);
}

/* ====================================
   PROGRESS BARS
   ==================================== */

.level-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-sm);
}

.level-progress-bar {
    height: 100%;
    background: var(--gradient-success);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.profile-xp-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-sm) 0;
}

.profile-xp-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.8s var(--easing-smooth);
}

/* ====================================
   CHIPS & PILLS
   ==================================== */

.suggestion-chip,
.quick-action-btn {
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.suggestion-chip:hover,
.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
    transform: translateY(-2px);
}

.quick-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: flex-start;
    padding: var(--space-md);
    border-radius: var(--radius-2xl);
}

/* ====================================
   ACHIEVEMENT BADGES
   ==================================== */

.achievement-badge {
    position: relative;
    padding: var(--space-lg);
    text-align: center;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.achievement-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
}

.achievement-badge.unlocked {
    background: rgba(67, 233, 123, 0.1);
    border-color: rgba(67, 233, 123, 0.3);
}

.achievement-badge.unlocked:hover {
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.3);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    font-size: 1.8rem;
}

.achievement-badge.locked .achievement-icon {
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

.achievement-name {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.achievement-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
}

/* ====================================
   STATUS INDICATORS
   ==================================== */

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-accent-green);
    border-radius: var(--radius-full);
    margin-right: var(--space-xs);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(67, 233, 123, 0);
    }
}

/* ====================================
   TOAST NOTIFICATIONS
   ==================================== */

.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--glass-shadow);
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    opacity: 0;
    transform: translateY(100px);
    transition: all var(--transition-slow);
    z-index: var(--z-toast);
    pointer-events: none;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.success {
    border-left: 4px solid var(--color-accent-green);
}

.toast.error {
    border-left: 4px solid #f5576c;
}

.toast.info {
    border-left: 4px solid var(--color-accent-blue);
}

/* ====================================
   RESPONSIVE COMPONENTS
   ==================================== */

@media (max-width: 768px) {
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
    }
    
    .feature-card,
    .stat-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .stat-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .toast {
        bottom: var(--space-md);
        right: var(--space-md);
        left: var(--space-md);
        max-width: none;
    }
}

