/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%),
        linear-gradient(180deg, #0a0a0a 0%, #111827 100%);
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Project Sections */
.project-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5e7eb;
}

.section-title .icon {
    font-size: 1.5rem;
}

/* Chips Container */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Chip */
.chip-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border: 1px solid #374151;
    border-radius: 12px;
    color: #f3f4f6;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.chip:hover {
    transform: translateY(-2px);
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.chip-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chip Edit Button */
.chip-edit, .chip-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #374151;
    border: none;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-edit:hover {
    background: #6366f1;
    color: #fff;
}

.chip-download:hover {
    background: #10b981;
    color: #fff;
}

/* Empty State */
.empty-state {
    color: #6b7280;
    font-size: 0.9rem;
    padding: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed #374151;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0 20px;
    color: #4b5563;
    font-size: 0.85rem;
    border-top: 1px solid #1f2937;
    margin-top: 60px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #f3f4f6;
}

.modal-content input {
    width: 100%;
    padding: 14px 16px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    border-color: #6366f1;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-buttons button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #374151;
    color: #9ca3af;
}

.btn-cancel:hover {
    background: #4b5563;
}

.btn-save {
    background: #6366f1;
    color: #fff;
}

.btn-save:hover {
    background: #4f46e5;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 40px 16px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .chip {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .chip-name {
        max-width: 100px;
    }
}
