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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #e94560, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
}

main {
    flex: 1;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#keyword-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: background 0.3s;
}

#keyword-input::placeholder {
    color: #888;
}

#keyword-input:focus {
    background: rgba(255, 255, 255, 0.15);
}

#search-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #e94560, #f5a623);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

#search-btn:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    padding: 40px;
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.loading-animation .bubble {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-animation .bubble:nth-child(1) {
    background: #e94560;
    animation-delay: 0s;
}

.loading-animation .bubble:nth-child(2) {
    background: #f5a623;
    animation-delay: 0.2s;
}

.loading-animation .bubble:nth-child(3) {
    background: #a855f7;
    animation-delay: 0.4s;
}

.loading-animation .bubble:nth-child(4) {
    background: #3b82f6;
    animation-delay: 0.6s;
}

.loading-animation .bubble:nth-child(5) {
    background: #10b981;
    animation-delay: 0.8s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.loading p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.result {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result h2 {
    color: #e94560;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#result-content {
    line-height: 1.8;
    color: #e0e0e0;
}

#result-content h1,
#result-content h2,
#result-content h3 {
    color: #f5a623;
    margin: 20px 0 10px 0;
}

#result-content h1 { font-size: 1.5rem; }
#result-content h2 { font-size: 1.3rem; }
#result-content h3 { font-size: 1.1rem; }

#result-content p {
    margin-bottom: 15px;
}

#result-content ul,
#result-content ol {
    margin: 10px 0 15px 20px;
}

#result-content li {
    margin-bottom: 8px;
}

#result-content strong {
    color: #e94560;
}

#result-content em {
    color: #a855f7;
    font-style: italic;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, rgba(233, 69, 96, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(233, 69, 96, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #e94560;
    margin-top: 20px;
}

.ai-badge svg {
    width: 16px;
    height: 16px;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    padding-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

.blog-link {
    color: #e94560;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.blog-link:hover {
    color: #f5a623;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
    }

    #search-btn {
        width: 100%;
    }
}
