/* bots.css - Complete Styling for Codewave Unit */ :root { --primary: #4361ee; --primary-dark: #3a56d4; --secondary: #3f37c9; --accent: #4895ef; --dark: #1b263b; --darker: #0d1b2a; --light: #f8f9fa; --gray: #6c757d; --success: #4cc9f0; --warning: #f8961e; --danger: #f72585; --white: #ffffff; --black: #000000; --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1); --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1); --transition: all 0.3s ease; } /* Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; color: var(--dark); background-color: var(--light); } .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; } /* Loading Screen */ .loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--darker); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.5s ease; } .loading-content { text-align: center; color: var(--white); } .loading-logo img { width: 150px; margin-bottom: 2rem; animation: pulse 2s infinite; } .loading-text h2 { font-size: 1.8rem; margin-bottom: 1.5rem; color: var(--accent); } .progress-bar { width: 300px; height: 8px; background-color: rgba(255, 255, 255, 0.1); border-radius: 4px; margin: 0 auto; overflow: hidden; } .progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); animation: progress-loading 2s ease-in-out infinite; } @keyframes progress-loading { 0% { width: 0; } 50% { width: 100%; } 100% { width: 0; margin-left: 100%; } } @keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } } /* Navigation */ .navbar { background-color: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; padding: 1rem 0; } .nav-content { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.75rem; font-weight: 800; color: var(--dark); } .logo span { color: var(--primary); } .menu-toggle { background: none; border: none; color: var(--dark); font-size: 1.5rem; cursor: pointer; display: none; } /* Navigation Drawer */ .nav-drawer { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background-color: var(--dark); color: var(--white); z-index: 1000; transition: right 0.3s ease; overflow-y: auto; } .nav-drawer.open { right: 0; } .drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .close-drawer { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; } .drawer-content { padding: 20px; } .drawer-section { margin-bottom: 30px; } .drawer-section h3 { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; gap: 10px; } .drawer-section a { display: block; color: var(--white); padding: 12px 0; text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 10px; } .drawer-section a:hover { color: var(--primary); padding-left: 10px; } .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; } .drawer-overlay.active { opacity: 1; visibility: visible; } /* Hero Section */ .hero { background: linear-gradient(135deg, var(--darker), var(--dark)); color: var(--white); padding: 5rem 0; position: relative; } .hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('../photo/file_000000005ffc6230b4fc491c0e5e06ed.png') center/cover no-repeat; opacity: 0.1; } .hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; } .hero h1 { font-size: 2.5rem; margin-bottom: 1rem; } .hero h1 span { color: var(--accent); } .subtitle { font-size: 1.25rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 2rem; } .search-container { display: flex; max-width: 600px; margin: 0 auto 2rem; border-radius: 0.5rem; overflow: hidden; box-shadow: var(--shadow-lg); } #bot-search { flex: 1; padding: 1rem; border: none; font-size: 1rem; outline: none; } .search-button { background-color: var(--accent); color: var(--white); border: none; padding: 0 1.5rem; font-weight: 600; cursor: pointer; transition: var(--transition); } .search-button:hover { background-color: var(--primary); } .stats { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; } .stat-item { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; color: rgba(255, 255, 255, 0.9); } .stat-item i { color: var(--accent); } /* Main Content */ .main-content { padding: 4rem 0; } .section-header { text-align: center; margin-bottom: 3rem; } .section-header h2 { color: var(--dark); position: relative; display: inline-block; margin-bottom: 1.5rem; } .section-header h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: linear-gradient(to right, var(--primary), var(--accent)); border-radius: 2px; } .bot-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; } .filter-btn { padding: 0.5rem 1.25rem; border-radius: 2rem; background-color: var(--light); color: var(--dark); border: none; cursor: pointer; transition: var(--transition); font-weight: 500; } .filter-btn:hover, .filter-btn.active { background-color: var(--primary); color: var(--white); } /* Bot Grid */ .bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; } .bot-card { background-color: var(--white); border-radius: 0.75rem; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); } .bot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); } .bot-header { padding: 1.5rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); position: relative; } .bot-header h3 { font-size: 1.25rem; margin-bottom: 0.5rem; } .bot-developer { font-size: 0.875rem; opacity: 0.9; } .bot-badge { position: absolute; top: 1rem; right: 1rem; background-color: var(--white); color: var(--primary); padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 700; } .bot-body { padding: 1.5rem; } .bot-specs { margin-bottom: 1.5rem; } .spec-item { display: flex; align-items: center; margin-bottom: 0.75rem; font-size: 0.875rem; } .spec-item i { width: 24px; color: var(--primary); margin-right: 0.5rem; } .bot-stats { display: flex; justify-content: space-between; margin-bottom: 1.5rem; padding: 0.75rem 0; border-top: 1px solid rgba(0, 0, 0, 0.05); border-bottom: 1px solid rgba(0, 0, 0, 0.05); } .stat-badge { display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; color: var(--gray); } .stat-badge i { font-size: 1rem; margin-bottom: 0.25rem; color: var(--primary); } .bot-actions { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; } .action-btn { flex: 1; padding: 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.25rem; } .btn-like { background-color: rgba(76, 201, 240, 0.1); color: var(--success); border: 1px solid rgba(76, 201, 240, 0.3); } .btn-like:hover, .btn-like.liked { background-color: rgba(76, 201, 240, 0.2); } .btn-like.liked { color: var(--white); background-color: var(--success); } .btn-dislike { background-color: rgba(247, 37, 133, 0.1); color: var(--danger); border: 1px solid rgba(247, 37, 133, 0.3); } .btn-dislike:hover, .btn-dislike.disliked { background-color: rgba(247, 37, 133, 0.2); } .btn-dislike.disliked { color: var(--white); background-color: var(--danger); } .btn-share { background-color: rgba(72, 149, 239, 0.1); color: var(--accent); border: 1px solid rgba(72, 149, 239, 0.3); } .btn-share:hover, .btn-share.shared { background-color: rgba(72, 149, 239, 0.2); } .btn-share.shared { color: var(--white); background-color: var(--accent); } .bot-footer { padding: 0 1.5rem 1.5rem; } .repo-link { display: block; width: 100%; text-align: center; text-decoration: none; } .add-bot-cta { text-align: center; padding: 3rem; background-color: var(--white); border-radius: 0.75rem; box-shadow: var(--shadow); margin-top: 3rem; } .add-bot-cta h3 { color: var(--primary); margin-bottom: 1rem; } .add-bot-cta p { color: var(--gray); margin-bottom: 1.5rem; } .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; gap: 0.5rem; text-decoration: none; } .btn-primary { background-color: var(--primary); color: var(--white); } .btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); } /* Footer */ .footer { background-color: var(--dark); color: var(--white); padding: 4rem 0 2rem; } .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 3rem; } .footer-col h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.125rem; } .footer-col ul { list-style: none; } .footer-col ul li { margin-bottom: 0.75rem; } .footer-col ul li a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: var(--transition); } .footer-col ul li a:hover { color: var(--accent); padding-left: 0.25rem; } .social-links { display: flex; gap: 1rem; } .social-links a { color: var(--white); font-size: 1.25rem; transition: var(--transition); } .social-links a:hover { color: var(--accent); transform: translateY(-3px); } .footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; } /* Chatbot Floating Button */ .chatbot-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 99; } .chatbot-logo { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--white); font-size: 1.5rem; box-shadow: var(--shadow-lg); transition: var(--transition); cursor: pointer; position: relative; } .chatbot-logo:hover { transform: scale(1.1) rotate(10deg); } .ai-badge { position: absolute; top: -5px; right: -5px; background-color: var(--danger); color: var(--white); width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.625rem; font-weight: 700; border: 2px solid var(--white); } /* Highlight Shared Bot */ .highlight-shared { animation: highlight-pulse 2s ease-in-out; box-shadow: 0 0 0 5px rgba(72, 149, 239, 0.3); } @keyframes highlight-pulse { 0% { box-shadow: 0 0 0 0 rgba(72, 149, 239, 0.3); } 50% { box-shadow: 0 0 0 15px rgba(72, 149, 239, 0); } 100% { box-shadow: 0 0 0 0 rgba(72, 149, 239, 0); } } /* Responsive Design */ @media (max-width: 992px) { .hero h1 { font-size: 2rem; } .bot-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } } @media (max-width: 768px) { .menu-toggle { display: block; } .hero { padding: 3rem 0; } .search-container { flex-direction: column; } .search-button { padding: 1rem; } .stats { flex-direction: column; gap: 1rem; } .add-bot-cta { padding: 2rem 1rem; } } @media (max-width: 576px) { .container { padding: 0 1rem; } .bot-filters { gap: 0.5rem; } .filter-btn { padding: 0.5rem 1rem; font-size: 0.875rem; } .bot-actions { flex-wrap: wrap; } .action-btn { min-width: calc(50% - 0.25rem); } }