.ai-agent-playground-container {
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    padding: 1rem;
    min-height: auto;
}

.ai-agent-playground-content {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.main-title-section {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    background: linear-gradient(45deg, #fff 0%, #f0f4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.title-divider {
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.7);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.title-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.website-category {
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
}

.website-category:last-child {
    border-bottom: none;
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 0.75rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.website-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.website-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    color: #475569;
    text-decoration: none;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    gap: 0.75rem;
}

.website-link-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: cover;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #64748b;
}

.website-link-icon.fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
}

.website-link-icon img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    z-index: 2;
    position: relative;
    flex: 1;
    text-align: left;
}

.website-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.website-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
}

.website-link:hover::before {
    left: 100%;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 0.75rem;
    margin: 1rem;
    border: 1px solid #fecaca;
}

.icon-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Desktop - 2 items per row */
@media (min-width: 1024px) {
    .website-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-title {
        font-size: 3rem;
    }
}

/* Tablet - 3 items per row */
@media (min-width: 768px) and (max-width: 1023px) {
    .website-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-title {
        font-size: 2.25rem;
    }
}

/* Mobile - 2 items per row */
@media (max-width: 767px) {
    .ai-agent-playground-container {
        padding: 0.5rem;
    }
    
    .main-title-section {
        padding: 2rem 1rem 1.5rem;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .title-subtitle {
        font-size: 1rem;
    }
    
    .website-category {
        padding: 1.5rem 1rem;
    }
    
    .category-title {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
    }
    
    .website-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .website-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        min-height: 45px;
        gap: 0.5rem;
    }
    
    .website-link-icon {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}

/* Very small mobile */
@media (max-width: 480px) {
    .website-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .website-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.78rem;
        min-height: 40px;
        gap: 0.4rem;
    }
    
    .website-link-icon {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* 위젯 스타일 */
.ai-agent-playground-widget .ai-agent-playground-container {
    padding: 0.5rem;
    min-height: auto;
}

.ai-agent-playground-widget .main-title-section {
    padding: 1.5rem 1rem 1rem;
}

.ai-agent-playground-widget .main-title {
    font-size: 1.5rem;
}

.ai-agent-playground-widget .website-category {
    padding: 1rem 0.5rem;
}