* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scrollbar-gutter: stable; /* Reserves space for scrollbar even when not needed */
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}
/* Compact Hero Section */
.hero-section {
    background-color: #f9fafb;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

/* Compact Search Bar */
.search-section {
    flex-shrink: 0;
    width: 350px;
}

.search-container {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.search-input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.search-btn {
    background-color: #000000;
    color: white;
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #2d3748;
}

/* Main Content */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    display: flex;
    gap: 2rem;
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-btn:hover {
    background-color: #f9fafb;
}

.category-btn.active {
    background-color: #000000;
    color: #ffffff;
    font-weight: 600;
}

.category-count {
    font-size: 13px;
    opacity: 0.7;
}

.clear-favorites-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fee;
    border: 1px solid #fcc;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    color: #c33;
    transition: all 0.2s;
}

.clear-favorites-btn:hover {
    background: #fdd;
}

/* Agents Grid */
.content-area {
    flex: 1;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

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

/* Agent Card */
.agent-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.agent-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Mindstudio-style thumbnails with stock photos */
.agent-thumbnail {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.agent-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.agent-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn i {
    color: #9ca3af;
    font-size: 18px;
}

.favorite-btn.active {
    background: #ef4444;
}

.favorite-btn.active i {
    color: white;
}

.agent-content {
    padding: 1.25rem;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.badge-atlas { background: #dbeafe; color: #1e40af; }
.badge-forge { background: #fee2e2; color: #991b1b; }
.badge-crystal { background: #e0e7ff; color: #3730a3; }
.badge-media { background: #fce7f3; color: #9f1239; }
.badge-biz { background: #d1fae5; color: #065f46; }

.agent-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.agent-description {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
    min-height: 60px;
}

.agent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.quick-deploy {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
}

.launch-btn {
    background: #000000;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.launch-btn:hover {
    background: #2d3748;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results i {
    font-size: 4rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #6b7280;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #9ca3af;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        align-items: stretch;
    }

    .search-section {
        width: 100%;
    }
}


/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0.5rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
}

.mobile-menu-drawer.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
}

.mobile-menu-items {
    list-style: none;
    padding: 1rem;
}

.mobile-menu-items li {
    margin-bottom: 0.5rem;
}

.mobile-menu-items a {
    display: block;
    padding: 1rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
}

.mobile-menu-items a:hover,
.mobile-menu-items a.active {
    background: #f9fafb;
}

.mobile-cta-buttons {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .cta-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Anchor footer */
.agent-footer {
  position: relative;
}

/* Inline hover caption INSIDE card */
.launch-btn::after {
    content: "Available with trial or membership plan";
    position: absolute;

    bottom: 35px;                 
    left: 50%;
    transform: translateX(-50%);

    max-width: calc(100% - 32px);
    background: #111827;
    color: #ffffff;

    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;          
    text-align: center;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 5;
}

/* Show on hover */
.launch-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}
