/* ===== HOME PAGE STYLES ===== */
.home-header {
    background: transparent;
    padding-top: var(--spacing-lg);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.greeting-text {
    font-size: 14px;
    color: var(--text-muted);
}

.username {
    font-size: 24px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.notification-btn {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

/* Avatar Card */
.avatar-card {
    padding: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.avatar-glow {
    position: absolute;
    inset: -10px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(15px);
    animation: pulse 3s ease-in-out infinite;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.avatar-level {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
}

.avatar-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.stat-icon {
    font-size: 16px;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    margin-left: auto;
    font-weight: 600;
}

.stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
    transition: width 0.5s ease;
}

.stamina-fill {
    background: var(--success-gradient);
}

.hunger-fill {
    background: var(--warning-gradient);
}

.stat-bar-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
}

.stat-bar-threshold {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--danger);
}

.stat-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* Currency Row */
.currency-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.currency-card {
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.currency-icon {
    font-size: 28px;
}

.currency-info {
    display: flex;
    flex-direction: column;
}

.currency-label {
    font-size: 12px;
    color: var(--text-muted);
}

.currency-value {
    font-size: 18px;
    font-weight: 700;
}

/* Quick Actions */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.action-card {
    padding: var(--spacing-lg) var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    border: none;
    text-align: center;
}

.action-card:active {
    transform: scale(0.98);
}

.action-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 4px;
}

.work-icon {
    background: var(--success-gradient);
}

.market-icon {
    background: var(--primary-gradient);
}

.food-icon {
    background: var(--warning-gradient);
}

.city-icon {
    background: var(--secondary-gradient);
}

.action-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.action-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* Daily Tasks */
.task-progress {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.task-item {
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.task-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    flex-shrink: 0;
}

.task-item.completed .task-check {
    background: var(--success-gradient);
    border-color: transparent;
    color: white;
}

.task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-name {
    font-size: 14px;
    font-weight: 500;
}

.task-item.completed .task-name {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-reward {
    font-size: 12px;
    color: var(--success);
}

.task-progress-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: var(--accent-gradient);
}

/* Activity Banner */
.activity-banner {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-tag {
    background: var(--danger-gradient);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.banner-title {
    font-size: 18px;
    font-weight: 700;
}

.banner-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.banner-timer {
    text-align: right;
}

.timer-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.timer-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--warning);
}