/**
 * Landing Page Styles
 * Extracted from inline styles for hx-boost compatibility
 */

/* Series grid - 3 columns on desktop */
#series-grid,
#shared-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    #series-grid,
    #shared-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #series-grid,
    #shared-grid {
        grid-template-columns: 1fr;
    }
}

.add-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 2px dashed var(--border-medium);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.add-card-icon {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
    transition: color 0.2s ease;
}

.add-card:hover .add-card-icon {
    color: var(--accent);
}

.add-card-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.add-card:hover .add-card-label {
    color: var(--accent);
}

/* Shared content styles */
.shared-card {
    position: relative;
    border-left: 3px solid var(--accent);
}

.shared-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

@media (max-width: 1024px) {
    .add-card {
        min-height: 120px;
    }

    .add-card-icon {
        font-size: 2rem;
    }

    .add-card-label {
        font-size: 0.8rem;
    }
}

/* ==================== Tour Panel ==================== */
.tour-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tour-panel.tour-complete {
    border-color: var(--success);
    background: var(--success-light);
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--accent-light);
    cursor: pointer;
    user-select: none;
}

.tour-header:hover {
    background: rgba(var(--accent-rgb), 0.15);
}

.tour-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent);
}

.tour-title .material-symbols-outlined {
    font-size: 1.25rem;
}

.tour-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tour-chevron {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.tour-body {
    padding: 1rem;
}

.tour-intro {
    font-size: 0.875rem;
    color: var(--text-body);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tour-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tour-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-elevated);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tour-item:hover {
    background: var(--bg-hover);
}

.tour-checkbox {
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.tour-item-content {
    flex: 1;
    min-width: 0;
}

.tour-item-title {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.tour-item:has(.tour-checkbox:checked) .tour-item-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.tour-item-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.tour-item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--text-muted);
    border-radius: 4px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.tour-item-link:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.tour-item-link .material-symbols-outlined {
    font-size: 1.125rem;
}

.tour-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tour-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tour-progress {
        width: 100%;
        justify-content: space-between;
    }

    .tour-item {
        padding: 0.75rem;
    }

    .tour-item-link {
        display: none;
    }
}

/* ==================== Guided Tour Overlay ==================== */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
}

.tour-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;  /* Don't intercept clicks - let them through to highlighted element */
}

/* When no spotlight, show backdrop */
.tour-overlay.no-spotlight .tour-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.tour-spotlight {
    position: absolute;
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    z-index: 2001;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tour-tooltip {
    position: fixed;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 2002;
    pointer-events: auto;
}

.tour-tooltip-content {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.tour-tooltip-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-step-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tour-tooltip-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Tour Actions in Panel - Updated for guided tour button */
.tour-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.tour-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.tour-actions .material-symbols-outlined {
    font-size: 1.125rem;
}

/* Mobile adjustments for tour overlay */
@media (max-width: 768px) {
    .tour-tooltip {
        position: fixed !important;
        left: 1rem !important;
        right: 1rem !important;
        bottom: 1rem !important;
        top: auto !important;
        max-width: none;
        transform: none !important;
    }

    .tour-spotlight {
        border-radius: 4px;
    }
}
