/* Packing List - Custom Styles */
* {
    font-family: 'Heebo', sans-serif;
}

body {
    padding-bottom: 2rem;
}

/* Season Filter Buttons */
.season-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.season-btn.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Category Header */
.category-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background moved to glassmorphism.css */
    transition: all 0.3s ease;
    border-radius: 1rem 1rem 0 0;
}

/* REMOVED: hover styles - now controlled by glassmorphism.css */

.category-header.active {
    /* background moved to glassmorphism.css */
    /* color moved to glassmorphism.css */
}

/* Category Progress Bar */
.category-progress-container {
    height: 8px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.category-progress-bar {
    height: 100%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    position: relative;
}

.category-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.category-progress-text {
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.category-icon {
    font-size: 1.5rem;
}

.category-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

/* Category Content */
.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.category-content.expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.category-items {
    padding: 1rem 1.5rem;
}

/* Category Actions Bar */
.category-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-remaining {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.category-remaining i {
    color: #f59e0b;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.category-complete-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #10b981;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 9999px;
}

.category-complete-badge i {
    animation: check-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes check-bounce {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.btn-check-all {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-check-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-check-all:active {
    transform: translateY(0);
}

/* Checklist Items */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checklist-item:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    transform: translateX(5px);
}

.checklist-item.checked {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
}

.checklist-item.checked .item-text {
    text-decoration: line-through;
    color: #6b7280;
}

/* Custom Checkbox */
.custom-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 0.5rem;
    border: 2px solid #d1d5db;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.custom-checkbox:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.custom-checkbox.checked {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
}

.item-text {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.item-season {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.season-summer {
    background: #fef3c7;
    color: #d97706;
}

.season-winter {
    background: #dbeafe;
    color: #2563eb;
}

.season-all {
    background: #f3f4f6;
    color: #6b7280;
}

.delete-btn {
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    font-size: 1rem;
}

.checklist-item:hover .delete-btn {
    opacity: 1;
    animation: deleteButtonAppear 0.3s ease;
}

@keyframes deleteButtonAppear {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-90deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.delete-btn:hover {
    background: #fee2e2;
    transform: scale(1.2);
    color: #dc2626;
}

.delete-btn:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: slideIn 0.4s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.custom-checkbox.checked i {
    animation: checkmark 0.4s ease;
}

/* Responsive */
@media (max-width: 640px) {
    .category-title {
        font-size: 1rem;
    }
    
    .category-icon {
        font-size: 1.25rem;
    }
    
    .season-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .checklist-item {
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    header, footer, .season-btn, #addCustomBtn, #resetBtn, .delete-btn {
        display: none !important;
    }
    
    .category-content {
        max-height: none !important;
    }
    
    .category-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
