/* ================================ SysTades Social Network Styles ================================ */ :root { /* Primary Colors */ --primary-50: #f0f9ff; --primary-100: #e0f2fe; --primary-200: #bae6fd; --primary-300: #7dd3fc; --primary-400: #38bdf8; --primary-500: #0ea5e9; --primary-600: #0284c7; --primary-700: #0369a1; --primary-800: #075985; --primary-900: #0c4a6e; /* Neutral Colors */ --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937; --gray-900: #111827; /* Semantic Colors */ --success: #10b981; --warning: #f59e0b; --error: #ef4444; --info: #3b82f6; /* Social Media Colors */ --like-color: #ec4899; --share-color: #8b5cf6; --bookmark-color: #f59e0b; --comment-color: var(--primary-500); /* Glassmorphism */ --glass-bg: rgba(255, 255, 255, 0.1); --glass-border: rgba(255, 255, 255, 0.2); --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); /* Animations */ --transition-fast: 0.15s ease-out; --transition-normal: 0.3s ease-out; --transition-slow: 0.6s ease-out; /* Shadows */ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1); /* Border Radius */ --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-2xl: 1.5rem; } /* Dark Mode Variables */ [data-theme="dark"] { --glass-bg: rgba(0, 0, 0, 0.1); --glass-border: rgba(255, 255, 255, 0.1); --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); } /* ================================ Performance Optimizations ================================ */ * { box-sizing: border-box; } img { max-width: 100%; height: auto; } /* GPU Acceleration for animations */ .accelerated { transform: translateZ(0); will-change: transform; } /* Smooth scrolling */ html { scroll-behavior: smooth; } /* ================================ Social Feed Styles ================================ */ .social-feed { max-width: 600px; margin: 0 auto; padding: 1rem; } .post-card { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); margin-bottom: 1.5rem; padding: 1.5rem; box-shadow: var(--shadow-lg); transition: all var(--transition-normal); position: relative; overflow: hidden; } .post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); border-color: var(--primary-300); } .post-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-500), var(--primary-600)); opacity: 0; transition: opacity var(--transition-normal); } .post-card:hover::before { opacity: 1; } /* Post Header */ .post-header { display: flex; align-items: center; margin-bottom: 1rem; gap: 0.75rem; } .post-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--primary-500); transition: all var(--transition-fast); cursor: pointer; } .post-avatar:hover { transform: scale(1.1); border-color: var(--primary-400); } .post-author { flex: 1; } .post-author-name { font-weight: 600; color: var(--gray-800); margin: 0; font-size: 1rem; } .post-author-username { color: var(--gray-500); font-size: 0.875rem; margin: 0; } .post-time { color: var(--gray-400); font-size: 0.875rem; } /* Post Content */ .post-content { margin-bottom: 1rem; line-height: 1.6; color: var(--gray-700); } .post-type-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: var(--radius-md); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; } .post-type-text { background: var(--gray-100); color: var(--gray-600); } .post-type-thought { background: var(--primary-100); color: var(--primary-600); } .post-type-question { background: var(--warning); color: white; } .post-type-insight { background: var(--success); color: white; } /* Post Actions */ .post-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--gray-200); } .action-group { display: flex; gap: 1rem; } .action-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border: none; background: transparent; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); font-size: 0.875rem; color: var(--gray-500); } .action-btn:hover { background: var(--gray-100); color: var(--gray-700); transform: translateY(-1px); } .action-btn.active { color: var(--primary-600); background: var(--primary-50); } .action-btn i { font-size: 1rem; } /* Specific action colors */ .action-btn.like-btn.active { color: var(--like-color); background: rgba(236, 72, 153, 0.1); } .action-btn.share-btn:hover { color: var(--share-color); background: rgba(139, 92, 246, 0.1); } .action-btn.bookmark-btn.active { color: var(--bookmark-color); background: rgba(245, 158, 11, 0.1); } /* ================================ Comments Section ================================ */ .comments-section { border-top: 1px solid var(--gray-200); padding-top: 1rem; margin-top: 1rem; } .comment-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; padding: 0.75rem; border-radius: var(--radius-lg); background: var(--gray-50); transition: background var(--transition-fast); } .comment-item:hover { background: var(--gray-100); } .comment-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary-400); } .comment-content { flex: 1; } .comment-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; } .comment-author { font-weight: 600; color: var(--gray-800); font-size: 0.875rem; } .comment-time { color: var(--gray-400); font-size: 0.75rem; } .comment-text { color: var(--gray-700); font-size: 0.875rem; line-height: 1.5; margin-bottom: 0.5rem; } .comment-actions { display: flex; gap: 1rem; } .comment-action { background: none; border: none; color: var(--gray-400); font-size: 0.75rem; cursor: pointer; transition: color var(--transition-fast); } .comment-action:hover { color: var(--primary-500); } /* Comment Form */ .comment-form { display: flex; gap: 0.75rem; margin-top: 1rem; } .comment-form textarea { flex: 1; padding: 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); resize: none; min-height: 80px; transition: border-color var(--transition-fast); } .comment-form textarea:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); } .comment-submit { padding: 0.75rem 1.5rem; background: var(--primary-500); color: white; border: none; border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition-fast); font-weight: 500; } .comment-submit:hover { background: var(--primary-600); transform: translateY(-1px); } /* ================================ Create Post Form ================================ */ .create-post-form { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow-md); } .create-post-textarea { width: 100%; min-height: 120px; padding: 1rem; border: 1px solid var(--gray-300); border-radius: var(--radius-lg); resize: vertical; font-family: inherit; font-size: 1rem; line-height: 1.5; transition: all var(--transition-normal); } .create-post-textarea:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); } .create-post-options { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: 1rem; } .post-type-select, .post-visibility-select { padding: 0.5rem 1rem; border: 1px solid var(--gray-300); border-radius: var(--radius-md); background: white; cursor: pointer; transition: border-color var(--transition-fast); } .post-type-select:focus, .post-visibility-select:focus { outline: none; border-color: var(--primary-500); } .create-post-btn { padding: 0.75rem 2rem; background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); color: white; border: none; border-radius: var(--radius-lg); cursor: pointer; font-weight: 600; transition: all var(--transition-normal); box-shadow: var(--shadow-md); } .create-post-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .create-post-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } /* ================================ Filter Tabs ================================ */ .feed-filters { display: flex; gap: 0.5rem; margin-bottom: 2rem; padding: 0.5rem; background: var(--gray-100); border-radius: var(--radius-xl); overflow-x: auto; } .filter-tab { padding: 0.75rem 1.5rem; border: none; background: transparent; border-radius: var(--radius-lg); cursor: pointer; transition: all var(--transition-fast); font-weight: 500; white-space: nowrap; color: var(--gray-600); } .filter-tab:hover { background: var(--gray-200); color: var(--gray-800); } .filter-tab.active { background: var(--primary-500); color: white; box-shadow: var(--shadow-md); } /* ================================ Notifications ================================ */ .notification-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--radius-lg); transition: all var(--transition-fast); cursor: pointer; position: relative; } .notification-item:hover { background: var(--gray-50); transform: translateX(4px); } .notification-item.unread { background: var(--primary-50); border-left: 4px solid var(--primary-500); } .notification-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: white; } .notification-like { background: var(--like-color); } .notification-comment { background: var(--comment-color); } .notification-follow { background: var(--success); } .notification-share { background: var(--share-color); } .notification-content { flex: 1; } .notification-text { margin: 0 0 0.25rem 0; color: var(--gray-800); font-size: 0.875rem; } .notification-time { color: var(--gray-500); font-size: 0.75rem; } .notification-actions { display: flex; gap: 0.5rem; } .notification-delete { background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 0.5rem; border-radius: var(--radius-md); transition: all var(--transition-fast); } .notification-delete:hover { background: var(--error); color: white; } /* ================================ User Profile ================================ */ .profile-header { background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); color: white; padding: 2rem; border-radius: var(--radius-2xl); margin-bottom: 2rem; position: relative; overflow: hidden; } .profile-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,'); opacity: 0.3; } .profile-info { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.5rem; } .profile-avatar { width: 100px; height: 100px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.3); box-shadow: var(--shadow-xl); } .profile-details h1 { margin: 0 0 0.5rem 0; font-size: 2rem; font-weight: 700; } .profile-username { opacity: 0.9; font-size: 1.1rem; margin-bottom: 0.5rem; } .profile-bio { opacity: 0.8; line-height: 1.5; max-width: 500px; } .profile-stats { display: flex; gap: 2rem; margin-top: 1.5rem; } .stat-item { text-align: center; } .stat-number { display: block; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; } .stat-label { font-size: 0.875rem; opacity: 0.8; } .follow-btn { background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.3); color: white; padding: 0.75rem 2rem; border-radius: var(--radius-lg); font-weight: 600; cursor: pointer; transition: all var(--transition-normal); backdrop-filter: blur(10px); } .follow-btn:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); } .follow-btn.following { background: rgba(255, 255, 255, 0.9); color: var(--primary-600); } /* Profile Tabs */ .profile-tabs { display: flex; border-bottom: 1px solid var(--gray-200); margin-bottom: 2rem; overflow-x: auto; } .profile-tab { padding: 1rem 2rem; border: none; background: none; cursor: pointer; position: relative; color: var(--gray-600); font-weight: 500; transition: all var(--transition-fast); white-space: nowrap; } .profile-tab:hover { color: var(--primary-600); } .profile-tab.active { color: var(--primary-600); } .profile-tab.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--primary-500); border-radius: 2px 2px 0 0; } /* ================================ Responsive Design ================================ */ @media (max-width: 768px) { .social-feed { padding: 0.5rem; } .post-card { padding: 1rem; margin-bottom: 1rem; } .post-actions { flex-direction: column; gap: 1rem; align-items: stretch; } .action-group { justify-content: space-around; } .create-post-options { flex-direction: column; align-items: stretch; gap: 0.75rem; } .feed-filters { padding: 0.25rem; gap: 0.25rem; } .filter-tab { padding: 0.5rem 1rem; font-size: 0.875rem; } .profile-header { padding: 1.5rem; } .profile-info { flex-direction: column; text-align: center; gap: 1rem; } .profile-avatar { width: 80px; height: 80px; } .profile-details h1 { font-size: 1.5rem; } .profile-stats { justify-content: center; gap: 1.5rem; } .profile-tabs { gap: 0; } .profile-tab { flex: 1; padding: 0.75rem 1rem; text-align: center; font-size: 0.875rem; } } /* ================================ Loading & Animations ================================ */ .loading-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--gray-300); border-radius: 50%; border-top-color: var(--primary-500); animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .fade-in { animation: fadeIn 0.5s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .slide-up { animation: slideUp 0.3s ease-out; } @keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .pulse { animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* ================================ Toast Notifications ================================ */ .toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 1000; pointer-events: none; } .toast { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 1rem 1.5rem; margin-bottom: 0.5rem; box-shadow: var(--shadow-lg); pointer-events: all; max-width: 400px; animation: slideInRight 0.3s ease-out; } .toast.success { border-left: 4px solid var(--success); } .toast.error { border-left: 4px solid var(--error); } .toast.warning { border-left: 4px solid var(--warning); } .toast.info { border-left: 4px solid var(--info); } @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* ================================ Utilities ================================ */ .text-gradient { background: linear-gradient(135deg, var(--primary-500), var(--primary-600)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .glass-effect { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); } .shadow-glow { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); } .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; } .scrollbar-hide::-webkit-scrollbar { display: none; }