* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo {
    height: 2rem;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f1f5ff;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #0066ff;
    font-weight: 500;
}

.github-icon {
    height: 1.2rem;
}

.main-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.main-title {
    text-align: center;
    color: #1a73e8;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.search-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 2.5rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-box {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e8f0fe;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26,115,232,0.1);
}

.draw-button {
    padding: 1rem 2.5rem;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.draw-button:hover {
    background: #1557b0;
    transform: translateY(-2px);
}

.search-results {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    max-height: 300px;
    overflow-y: auto;
}

.selected-techs {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.selected-techs h3 {
    color: #1a73e8;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e8f0fe;
}

.selected-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e8f0fe;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    color: #1a73e8;
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.tech-item:hover {
    background-color: #f5f5f5;
}

.tech-icon {
    width: 24px;
    height: 24px;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #666;
}

.remove-btn {
    margin-left: auto;
    border: none;
    background: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.remove-btn:hover {
    background-color: rgba(0,0,0,0.1);
}

.category-group {
    margin-bottom: 1.5rem;
}

.category-title {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.category-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.selected-grid {
    display: block;
    gap: 1.5rem;
}

.floating-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    pointer-events: none;
    opacity: 0.7;
    filter: grayscale(50%);
    user-select: none;
    will-change: transform;
}

.floating-icon:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(calc(100vh - 130px)) scale(1.1) rotate(360deg) !important;
}

.floating-icon.dragging {
    cursor: grabbing;
    opacity: 0.8;
    z-index: 1000;
    transition: none;
}

.drag-guide {
    text-align: center;
    color: #5f6368;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.nav-menu a:hover {
    background-color: #f1f5ff;
    color: #0066ff;
}

.nav-menu .github-link {
    margin-left: 1rem;
}

.content-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-title {
    text-align: center;
    color: #333;
    margin-bottom: 3rem;
}

.intro-section, .guide-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.intro-section h2, .guide-section h2 {
    color: #0066ff;
    margin-bottom: 1.5rem;
}

.intro-section h3, .guide-section h3 {
    color: #333;
    margin: 1.5rem 0 1rem;
}

.intro-section p, .guide-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.intro-section ul, .guide-section ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.intro-section li, .guide-section li {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.intro-image {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 반응형 스타일 추가 */
@media screen and (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    align-items: center;
  }

  .github-link {
    width: 100%;
    justify-content: center;
  }

  .main-container {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .search-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-box {
    width: 100%;
  }

  .draw-button {
    width: 100%;
  }

  .floating-icon {
    width: 24px;
    height: 24px;
  }
}

@media screen and (max-width: 480px) {
  .main-title {
    font-size: 1.5rem;
  }

  .drag-guide {
    font-size: 0.9rem;
  }
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    min-height: 32px;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: #e8f0fe;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.tech-tag img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.tech-tag .remove-tag {
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: #1a73e8;
    margin-left: 0.2rem;
}

.tech-tag .remove-tag:hover {
    color: #1557b0;
}