/* Dashboard Page Specific Styles */

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(129, 140, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
}

/* Layout */
.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    height: calc(100vh - 120px);
    display: none; /* hidden until logged in */
}

@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        margin: 1rem auto;
        padding: 0 1rem;
        height: auto;
        overflow-y: visible;
    }
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

.btn-magic {
    background: linear-gradient(135deg, var(--primary), #0099ff);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-magic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.waterfall {
    column-count: 3;
    column-gap: 1.5rem;
    padding: 1.5rem 0.5rem 3rem 0.5rem;
    flex: 1;
    overflow-y: auto;
}

/* Fallback for smaller screens */
@media (max-width: 1100px) {
    .waterfall {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .waterfall {
        column-count: 1;
    }
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

@keyframes zoom-in {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Card Export Dropdown */
.card-export-dropdown {
    position: relative;
}

.card-export-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    z-index: 100;
    min-width: 140px;
    margin-bottom: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    padding: 0.4rem 0;
}

.card-export-menu.active {
    display: block;
}

.card-export-item {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.card-export-item:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

/* Profile Prompt Card */
.profile-prompt-card {
    grid-column: 1 / -1;
    column-span: all;
    -webkit-column-span: all; /* Safari support */
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 1.5rem 0;
    max-width: 900px;
    animation: zoom-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary-dim);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    flex-shrink: 0;
}

.prompt-content h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.prompt-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

@media (max-width: 768px) {
    .profile-prompt-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .prompt-actions {
        justify-content: center;
    }
}
