/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    font-size: 4.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

header h1 {
    font-size: 4rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 900;
    letter-spacing: 3px;
    font-family: 'Arial Black', Arial, sans-serif;
    text-transform: uppercase;
    color: #ff4757;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Logo animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Sections */
section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.list-header h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

section h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-row input {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: translateY(0);
}

button.danger {
    background: #e53e3e;
}

button.danger:hover {
    background: #c53030;
}

/* List Display */
.list-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.list-meta {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    color: #718096;
    font-size: 0.9rem;
}

.list-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Items */
.item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f7fafc;
    transition: all 0.2s;
}

.item:hover {
    border-color: #cbd5e0;
    background: #edf2f7;
}

.item.open {
    border-left: 4px solid #48bb78;
}

.item.claimed {
    border-left: 4px solid #ed8936;
    background: #fffaf0;
}

.item.partially-claimed {
    border-left: 4px solid #f6ad55;
    background: #fffaf0;
}

.item.done {
    border-left: 4px solid #38b2ac;
    background: #f0fff4;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.item-details {
    font-size: 0.9rem;
    color: #718096;
}

.item-actions {
    display: flex;
    gap: 5px;
}

.item-actions button {
    padding: 8px 12px;
    font-size: 14px;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #a0aec0;
}

.close:hover {
    color: #4a5568;
}

.share-link {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.share-link input {
    flex: 1;
    background: #f7fafc;
}

.share-token {
    margin-top: 15px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
    font-family: monospace;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    margin-top: 40px;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-open {
    background: #c6f6d5;
    color: #22543d;
}

.status-claimed {
    background: #fed7d7;
    color: #742a2a;
}

.status-partially-claimed {
    background: #fef5e7;
    color: #744210;
}

.status-done {
    background: #bee3f8;
    color: #2a4365;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-icon {
        font-size: 3.5rem;
    }
    
    header h1 {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    
    section {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .list-actions {
        flex-direction: column;
    }
    
    .item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-actions {
        margin-top: 10px;
        width: 100%;
    }
}
