/* Custom Checklist Page Styling - Dark Theme Integrated */

#checklist-app {
    max-width: 800px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.checklist-header {
    margin-bottom: 40px;
    text-align: center;
}

.checklist-header h1 {
    font-family: 'Belleza', sans-serif;
    text-transform: uppercase;
    font-size: 38px;
    letter-spacing: 1.5px;
    color: var(--ast-global-color-2, #ffffff);
    margin: 0 0 12px;
    font-weight: 400;
}

.checklist-sub {
    font-family: 'Work Sans', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.checklist-filters {
    display: flex;
    gap: 12px;
    overflow-x: scroll;
    padding: 4px 4px 12px;
    margin-bottom: 32px;
    scrollbar-width: none;
    /* Firefox */
}

.checklist-filters::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--ast-global-color-3, #faf5e5);
    padding: 8px 20px;
    border-radius: 9999px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    border-color: var(--ast-global-color-0, #dca54a);
    color: var(--ast-global-color-0, #dca54a);
}

.filter-btn.active {
    background: var(--ast-global-color-0, #dca54a);
    border-color: var(--ast-global-color-0, #dca54a);
    color: var(--ast-global-color-5, #0e0d06);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 165, 74, 0.25);
}

.checklist-summary {
    background: var(--ast-global-color-6, #2e2d2a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.summary-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.stat-value {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    color: var(--ast-global-color-2, #ffffff);
    font-weight: 500;
}

.stat-value strong {
    color: var(--ast-global-color-0, #dca54a);
    font-weight: 700;
}

.progress-bar-container {
    height: 8px;
    background-color: var(--ast-global-color-5, #0e0d06);
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--ast-global-color-0, #dca54a);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checklist-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checklist-item-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--ast-global-color-6, #2e2d2a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-item-row:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.checklist-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background-color: var(--ast-global-color-5, #0e0d06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.checklist-checkbox:hover {
    border-color: var(--ast-global-color-0, #dca54a);
}

.checklist-checkbox:checked {
    background-color: var(--ast-global-color-0, #dca54a);
    border-color: var(--ast-global-color-0, #dca54a);
    box-shadow: 0 2px 6px rgba(220, 165, 74, 0.3);
}

.checklist-checkbox:checked::after {
    content: '';
    display: block;
    width: 6px;
    height: 11px;
    border: solid var(--ast-global-color-5, #0e0d06);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 3px;
    left: 7px;
}

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

.item-name {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--ast-global-color-2, #ffffff);
    display: block;
    transition: color 0.2s ease;
}

.item-meta {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.item-price {
    font-family: 'Work Sans', sans-serif;
    color: var(--ast-global-color-0, #dca54a);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.item-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(220, 165, 74, 0.1);
    color: var(--ast-global-color-0, #dca54a);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(220, 165, 74, 0.2);
    flex-shrink: 0;
}

.item-link:hover {
    background-color: var(--ast-global-color-0, #dca54a);
    color: var(--ast-global-color-5, #0e0d06);
    border-color: var(--ast-global-color-0, #dca54a);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(220, 165, 74, 0.3);
}

.checklist-item-row.purchased {
    background: var(--ast-global-color-5, #0e0d06);
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    opacity: 0.55;
}

.checklist-item-row.purchased:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.03);
}

.checklist-item-row.purchased .item-name {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.3);
}

.checklist-item-row.purchased .item-price {
    color: rgba(255, 255, 255, 0.3);
}

.checklist-item-row.purchased .item-meta {
    color: rgba(255, 255, 255, 0.25);
}

.checklist-item-row.purchased .item-link {
    background-color: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    /* Disable buy link if purchased */
}

.loading-text,
.empty-text {
    font-family: 'Work Sans', sans-serif;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 60px 0;
    font-size: 15px;
}