/* =================== VARIABLES =================== */ :root { --bg: #0f172a; --text: #e2e8f0; --accent: #6366f1; --accent-hover: #818cf8; --card-bg: #1e293b; --card-light: #f1f5f9; --glass: rgba(255, 255, 255, 0.06); --glass-border: rgba(255, 255, 255, 0.12); --radius: 18px; --shadow: 0 10px 35px rgba(0, 0, 0, 0.4); --transition: 0.35s ease; } /* =================== GLOBAL RESET =================== */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; } /* ========== HEADER AREA ========== */ header { padding: 4rem 2rem 0rem; border-bottom-left-radius: 2rem; border-bottom-right-radius: 2rem; color: white; } .header-container { max-width: 1200px; margin: auto; } /* ========== TITLE WITH SUBTITLE ========== */ #main-title { font-size: 2.8rem; font-weight: 800; margin-bottom: 0.2rem; position: left; font-family: 'Poppins', sans-serif; } #main-title::after { content: 'by Rajaks Gyan'; display: block; font-size: 1rem; font-weight: 600; color: #facc15; margin-top: 0.4rem; } /* ========== CONTROLS ========== */ .controls { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.0rem; align-items: center; justify-content: space-between; } /* ========== SELECT BOXES ========== */ .controls select { padding: 0.75rem 1.25rem; font-size: 1rem; font-weight: 600; color: #0f172a; width:90%; background-color: white; border: 3px solid #cbd5e1; border-radius: 60%; appearance: none; cursor: pointer; display: flex; } /* ========== SEARCH CONTAINER ========== */ .search-container { display: flex; align-items: center; background: transparent; border-radius: 60%; padding: 0.3rem 0.4rem 0.3rem 0.2rem; } #search-input { flex: 4; border: none; background: transparent; font-size: 1.1rem; font-weight: 600; color: #ffffff; outline: none; } #search-input::placeholder { color: #d1d5db; opacity: 0.6; font-weight: 600; } #search-btn { background: white; border: none; border-radius: 50%; padding: 0.8rem 1.2rem; margin-left: 1rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); font-weight: bold; color: #0f172a; font-size: 1rem; transition: 0.3s ease; } #search-btn:hover { background: #e2e8f0; } /* ========== RESPONSIVE DESIGN ========== */ @media (max-width: 768px) { .controls { gap: 0rem; display: flex; } #main-title { font-size: 2.2rem; text-align: center; } #main-title::after { text-align: center; } } /* =================== CONTROLS =================== */ .controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0rem; border-radius: var(--radius); margin-bottom: 0rem; } .controls select, #search-input, #search-btn { padding: 1rem 1rem; border-radius: var(--radius); border: 1px solid var(--glass-border); background: var(--glass); color: var(--text); backdrop-filter: blur(10px); font-size: 1rem; transition: var(--transition); } .controls select:hover, #search-input:focus { background: rgba(255,255,255,0.08); border-color: var(--accent); } #search-btn { background: var(--accent); border: none; color: white; font-weight: 600; cursor: pointer; } #search-btn:hover { background: var(--accent-hover); transform: scale(1.04); } /* =================== GRID =================== */ .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 2rem; padding: 3rem 1.5rem; max-width: 1400px; margin: 0 auto; } /* =================== CARD =================== */ .card { background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: var(--transition); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; animation: fadeInUp 0.6s ease both; } .card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, var(--accent), transparent); opacity: 0; z-index: 0; transition: var(--transition); } .card:hover::before { opacity: 0.1; } .card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); } .card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.8rem; position: relative; z-index: 1; } .community { display: inline-block; background: var(--accent); color: white; font-size: 0.8rem; padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 0.75rem; margin-top: 0.20rem; position: relative; z-index: 1; } .meta, .blurb { font-size: 0.9rem; margin-top: 0.80rem; opacity: 0.85; margin-bottom: 1rem; position: relative; z-index: 1; } .stats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.80rem; margin-bottom: 1rem; position: relative; z-index: 1; } .stats span { background: rgba(255,255,255,0.07); padding: 0.4rem 0.8rem; border-radius: var(--radius); font-size: 0.8rem; margin-top: 0.80rem; } /* =================== LINK BUTTON =================== */ .links { display: flex; justify-content: center; z-index: 2; position: relative; } .topic-link { margin-top: 0.80rem; padding: 0.90rem 1.3rem; background: var(--accent); color: white; font-weight: 600; border-radius: 60px; text-decoration: none; transition: var(--transition); text-align: center; width: 100%; } .topic-link:hover { background: var(--accent-hover); transform: scale(1.05); } /* =================== FOOTER =================== */ footer { text-align: center; padding: 2rem 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.6); border-top: 1px solid rgba(255,255,255,0.08); } /* =================== ANIMATIONS =================== */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } /* =================== RESPONSIVE =================== */ @media (max-width: 768px) { #main-title { font-size: 2rem; } .controls { flex-direction: column; align-items: stretch; } .controls select { width: auto; /* Remove 90% width */ min-width: 130px; /* Ensure readability */ flex: 1; } #search-input, #search-btn { width: 30%; border-radius: 60px; } .topic-link { width: 100%; text-align: center; } } /* =================== SCROLLBAR =================== */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 5px; } /* =================== LOADING SPINNER AT TOP =================== */ #loading-spinner { width: 40px; height: 40px; margin: 2rem auto 1rem; border: 4px solid rgba(255, 255, 255, 0.2); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; display: block; text-align: center; } .spinner.hidden, #loading-spinner.hidden { display: none !important; } /* ========== TOAST ========== */ .toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--dark-gradient); color: #fff; padding: 0.75rem 1.5rem; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); backdrop-filter: blur(20px); opacity: 0; transition: opacity var(--transition-fast), transform var(--transition-fast); z-index: 1000; width: 80%; max-width: 500px; text-align: center; } .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); } /* =================== ANIMAÇÕES GERAIS =================== */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } } @keyframes spin { to { transform: rotate(360deg); } } /* =================== LOAD MORE BUTTON =================== */ .load-more-container { text-align: center; padding: 2rem 1rem 4rem; } .load-more-btn { padding: 1rem 2.2rem; font-size: 1rem; font-weight: 600; border: none; border-radius: 30px; background: var(--accent); color: white; cursor: pointer; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); transition: var(--transition); display: inline-block !important; margin-top: 1rem; } .load-more-btn:hover { transform: translateY(-4px) scale(1.03); background: var(--accent-hover); box-shadow: 0 12px 25px rgba(99, 102, 241, 0.5); } .load-more-btn:disabled { background: rgba(255, 255, 255, 0.2); cursor: not-allowed; box-shadow: none; transform: none; color: #ccc; } /* Spinner Animation */ @keyframes spin { to { transform: rotate(360deg); } } @media (max-width: 768px) { .selectors-wrapper { flex-wrap: nowrap; /* Prevent wrapping */ overflow-x: auto; /* Scroll if overflow happens */ } .selectors-wrapper select { flex-shrink: 1; } .controls { flex-direction: column; /* Stack search below selectors */ align-items: flex-start; } .search-container { margin-top: 1rem; width: 100%; justify-content: space-between; } } .language-selector { display: none; }