/* Shared Packing List Styles - Mobile Friendly */

/* CSS Variables - override these per-page for color schemes */
:root {
    --primary-color: #4caf50;
    --primary-dark: #388e3c;
    --primary-light: #43a047;
    --bg-gradient-start: #e8f5e8;
    --bg-gradient-mid: #a5d6a7;
    --bg-gradient-end: #81c784;
    --text-color: #2e7d32;
    --accent-bg: #fff3e0;
    --accent-border: #ff9800;
}

@media print {
    body { margin: 0; }
    .no-print { display: none !important; }
    body {
        background: white !important;
        color: black !important;
    }
    .section, .header, .bottom-section {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    .item.checked .item-text {
        text-decoration: none !important;
        opacity: 1 !important;
    }
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    color: var(--text-color);
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    background: white;
    padding: 20px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    margin: 0;
    color: var(--primary-dark);
    line-height: 1.3;
}

.subtitle {
    font-size: clamp(0.875rem, 3vw, 1rem);
    color: var(--primary-light);
    margin-top: 8px;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .container {
        grid-template-columns: 1fr 1fr;
    }
}

.section {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.section h2 {
    font-size: clamp(1rem, 3.5vw, 1.125rem);
    margin: 0 0 12px 0;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    margin: 4px 0;
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.4;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.item:hover {
    background-color: rgba(0,0,0,0.03);
}

.item:active {
    background-color: rgba(0,0,0,0.06);
}

.item.checked {
    background-color: rgba(0,0,0,0.02);
}

.item.checked .item-text {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Custom checkbox styling */
.item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    margin-right: 12px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.item input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.emoji {
    margin-right: 8px;
    font-size: 1.25em;
    flex-shrink: 0;
}

.item-text {
    flex: 1;
}

.bottom-section {
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    margin-top: 16px;
}

.fun-fact {
    background: var(--accent-bg);
    border-left: 4px solid var(--accent-border);
    padding: 12px;
    margin: 10px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    line-height: 1.5;
}

.bottom-message {
    text-align: center;
    margin-top: 16px;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

/* Button container */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    padding: 0 16px;
}

.btn {
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: #eeeeee;
}

/* Progress indicator */
.progress-container {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}
