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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
}

.container {
    text-align: center;
    max-width: 900px;
    width: 100%;
    animation: fadeIn 1s ease-in;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-in;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.8rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    animation: fadeIn 1.5s ease-in;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    animation: fadeIn 2s ease-in;
}

/* Search Container */
.search-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 2s ease-in;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.search-box {
    display: flex;
    gap: 1rem;
}

input[type="text"] {
    flex: 1;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    outline: none;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: #764ba2;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

button:hover:not(:disabled) {
    background: #5a3880;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result Container */
.result-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
    animation: slideUp 0.5s ease-out;
    max-height: 600px;
    overflow-y: auto;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 2rem;
}

.result-container h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
}

.result-content {
    line-height: 1.9;
    font-size: 1.1rem;
    opacity: 0.95;
}

.result-content p {
    margin-bottom: 1rem;
}

.result-content strong {
    color: #fff;
    font-weight: 600;
}

/* Loading State */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Error State */
.error {
    background: rgba(255, 59, 48, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 59, 48, 0.5);
    text-align: center;
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Footer */
footer {
    margin-top: 3rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .result-container {
        padding: 1.5rem;
        max-height: 500px;
    }
    
    .result-container h2 {
        font-size: 1.5rem;
    }
    
    .result-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
}

/* Scrollbar Styling */
.result-container::-webkit-scrollbar {
    width: 8px;
}

.result-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.result-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.result-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
