/* ============================================
   DASHBOARD PAGE STYLES
   ============================================ */

/* Header User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.notification-btn:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
}

.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-profile-btn:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-accent);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    transition: transform 0.3s;
}

.user-profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-profile-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--color-bg-soft);
}

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

.dropdown-divider {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid var(--color-border);
}

/* Dashboard Main */
#dashboard-page {
    background: var(--color-bg-soft);
    min-height: calc(100vh - 88px);
    padding: 2rem 0;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.welcome-content h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.welcome-content p {
    opacity: 0.95;
    font-size: 1.1rem;
}

.quick-actions {
    display: flex;
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 2rem;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

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

.section-header h2 {
    font-size: 1.5rem;
    color: var(--color-text);
}

.view-all-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.view-all-link:hover {
    color: var(--color-accent-hover);
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.outfit-card {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.outfit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.outfit-image {
    position: relative;
    overflow: hidden;
}

.outfit-image img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.3s;
}

.outfit-card:hover .outfit-image img {
    transform: scale(1.05);
}

.card-like-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.card-like-btn:hover {
    background: white;
    transform: scale(1.1);
}

.match-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.outfit-info {
    padding: 1rem;
}

.outfit-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.outfit-occasion {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-full-width {
    width: 100%;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.activity-item:hover {
    background: var(--color-bg-alt);
}

.activity-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.activity-time {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

/* Style Tags */
.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.style-tag {
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Saved Collections */
.saved-collections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.collection-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    transition: background 0.2s;
    cursor: pointer;
}

.collection-item:hover {
    background: var(--color-bg-alt);
}

.collection-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.collection-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.collection-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.85rem;
    text-transform: uppercase;
}

.event-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.event-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .welcome-section {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        width: 100%;
        justify-content: center;
    }

    .primary-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .stats-section {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        flex-direction: column;
        width: 100%;
    }

    .quick-action-btn {
        width: 100%;
    }

    .user-name {
        display: none;
    }

    /* Hide notification button on mobile */
    .notification-btn {
        display: none !important;
    }

    .welcome-section {
        padding: 1.5rem;
    }

    .dashboard-section {
        padding: 1.5rem;
    }

    #dashboard-page {
        padding: 1rem 0;
    }

    .welcome-content h1 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 1rem;
    }

    .dashboard-section {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .outfit-info h3 {
        font-size: 0.95rem;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }
}
