/* Dashboard Hero */
.dashboard-hero {
    padding: 120px 0 60px;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dashboard-pattern.svg');
    background-size: cover;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.welcome-section {
    text-align: center;
    position: relative;
    z-index: 2;
}

#userName {
    color: var(--accent-gold);
    font-weight: 900;
}

.dashboard-date {
    font-size: 1.2rem;
    opacity: 0.8;
    margin: 10px 0 20px;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.2rem;
}

/* Quick Actions */
.quick-actions {
    padding: 60px 0;
    background: var(--warm-beige);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.action-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-neon);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.action-card:hover::before {
    opacity: 0.1;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.action-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.action-card p {
    color: #666;
    position: relative;
    z-index: 2;
}

/* Daily Guidance */
.daily-guidance {
    padding: 60px 0;
    background: white;
}

.guidance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.guidance-card {
    background: var(--warm-beige);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    color: var(--primary-dark);
}

.date, .element-indicator, .crystal-match {
    font-size: 0.9rem;
    color: var(--accent-red);
    font-weight: 700;
}

.element-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.element-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.element-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.crystal-recommendation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.crystal-recommendation img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
}

.crystal-info h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.crystal-info p {
    color: #666;
    margin-bottom: 10px;
}

/* My Readings */
.my-readings {
    padding: 60px 0;
    background: var(--deep-blue);
    color: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: white;
}

.readings-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
}

.reading-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.reading-item:last-child {
    border-bottom: none;
}

.reading-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.reading-date {
    font-weight: 700;
    color: var(--accent-gold);
}

.reading-type {
    font-weight: 500;
}

.reading-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.reading-status.completed {
    background: var(--accent-teal);
    color: white;
}

.reading-status.pending {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.reading-action {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
}

.reading-action:hover:not(:disabled) {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.reading-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Community Activity */
.community-activity {
    padding: 60px 0;
    background: var(--warm-beige);
}

.activity-feed {
    background: white;
    border-radius: 20px;
    padding: 30px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 5px;
}

.activity-time {
    color: #666;
    font-size: 0.9rem;
}

/* Learning Progress */
.learning-progress {
    padding: 60px 0;
    background: white;
}

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

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--warm-beige);
    border-radius: 20px;
}

.stat-number {
    font-size: 3rem;
    font-family: var(--font-primary);
    font-weight: 900;
    color: var(--accent-red);
    display: block;
}

.stat-label {
    color: #666;
    margin-top: 10px;
}

.current-course {
    background: var(--gradient-primary);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Responsive */
@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .guidance-cards {
        grid-template-columns: 1fr;
    }
    
    .reading-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
}