/**
 * Dashboard Page Styles
 *
 * Dashboard-specific components including feature cards, drafts list,
 * creator slider, and package sections.
 */

/* ===== Feature Cards (Dashboard) ===== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.feature-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.feature-card.locked {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.feature-card.locked:hover {
    transform: none;
    box-shadow: none;
}

.feature-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.feature-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-text);
}

.feature-card p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.lock-overlay {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--color-bg-dark);
    color: var(--color-text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-unlock {
    width: 100%;
    margin-top: auto;
}

/* ===== Drafts List (Dashboard) ===== */

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

.draft-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.draft-item:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-primary);
}

.draft-info {
    flex: 1;
}

.draft-title {
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.draft-meta {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.draft-action {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

/* ===== Dashboard Page ===== */

.creator-slider-container {
    position: relative;
    overflow: hidden;
}

.creator-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.creator-hero {
    min-width: 100%;
    flex-shrink: 0;
    cursor: pointer;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-arrow-left {
    left: 1rem;
}

.slider-arrow-right {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-card-bg);
    cursor: pointer;
    opacity: 0.5;
}

.package-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-section-icon {
    font-size: 1.5rem;
}

.package-section-count {
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-weight: normal;
}

.package-card {
    cursor: pointer;
    position: relative;
}

.package-card.owned {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #065f46 !important;
    color: #064e3b;
}

[data-theme="dark"] .package-card.owned {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #d1fae5;
}

.package-card.locked {
    background: var(--color-card-bg);
    opacity: 0.9;
}

.package-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.owned-badge {
    /* Background color comes from inline style (subjectColor) */
    /* We ensure it's in the green family */
    background: #059669 !important; /* fallback green */
}

.available-badge {
    background: #6b7280;
}

.package-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

.creator-hero-games {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.creator-hero-mytasks {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.creator-hero-docs {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.creator-hero-introductions {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.creator-hero-academy {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.text-warning {
    color: var(--color-warning);
}

.text-muted {
    color: var(--color-text-light);
}
