Changed around line 1
- -primary-color: #1da1f2;
- --background-color: #ffffff;
+ --bg-color: #ffffff;
- -text-color: #14171a;
+ --secondary-text: #657786;
- -border-color: #e1e8ed;
+ --hover-bg: #f5f8fa;
- body {
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
- line-height: 1.5;
- color: var(--text-color);
- background-color: var(--background-color);
+ * {
+ box-sizing: border-box;
- header {
- background-color: var(--background-color);
- border-bottom: 1px solid var(--border-color);
- padding: 1rem;
- text-align: center;
- }
-
- header h1 {
- color: var(--primary-color);
- margin: 0;
- font-size: 2rem;
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
+ color: var(--text-color);
+ line-height: 1.6;
+ background-color: var(--bg-color);
- nav {
+ .top-nav {
+ position: fixed;
+ top: 0;
+ width: 100%;
- justify-content: center;
- gap: 1rem;
- margin-top: 1rem;
+ justify-content: space-between;
+ align-items: center;
+ padding: 1rem 2rem;
+ background: var(--bg-color);
+ border-bottom: 1px solid var(--border-color);
+ backdrop-filter: blur(12px);
+ z-index: 1000;
- nav a {
- color: var(--text-color);
- text-decoration: none;
+ .chirp-icon {
+ width: 2rem;
+ height: 2rem;
+ fill: var(--primary-color);
+ transition: transform 0.2s ease;
- nav a:hover {
- color: var(--primary-color);
+ .chirp-icon:hover {
+ transform: scale(1.1);
- main {
- max-width: 600px;
- margin: 0 auto;
- padding: 1rem;
+ .nav-links a {
+ text-decoration: none;
+ color: var(--text-color);
+ margin: 0 1rem;
+ padding: 0.5rem;
+ border-radius: 9999px;
+ transition: background-color 0.2s ease;
- .new-chirp {
- margin-bottom: 2rem;
+ .nav-links a:hover {
+ background-color: var(--hover-bg);
- .new-chirp textarea {
- width: 100%;
- height: 100px;
- padding: 0.5rem;
- border: 1px solid var(--border-color);
- border-radius: 4px;
- resize: none;
+ .nav-links a.active {
+ font-weight: bold;
+ color: var(--primary-color);
- .new-chirp button {
- background-color: var(--primary-color);
- color: var(--background-color);
+ .profile-btn {
+ background: var(--primary-color);
+ color: white;
- border-radius: 4px;
+ border-radius: 9999px;
- float: right;
+ transition: background-color 0.2s ease;
- .feed {
- margin-top: 2rem;
+ .profile-btn:hover {
+ background-color: #1991da;
+ }
+
+ main {
+ display: grid;
+ grid-template-columns: 1fr 2fr;
+ gap: 2rem;
+ max-width: 1200px;
+ margin: 4rem auto 0;
+ padding: 1rem;
- .chirp {
+ .compose {
- .chirp img {
- width: 50px;
- height: 50px;
+ .avatar {
+ width: 48px;
+ height: 48px;
- .chirp h2 {
- margin: 0;
- font-size: 1rem;
+ .compose-input {
+ flex-grow: 1;
- .chirp p {
- margin: 0.5rem 0;
+ textarea {
+ width: 100%;
+ height: 100px;
+ padding: 0.5rem;
+ border: none;
+ resize: none;
+ font-size: 1.1rem;
- .actions {
+ textarea:focus {
+ outline: none;
+ }
+
+ .compose-actions {
- gap: 1rem;
+ justify-content: flex-end;
+ margin-top: 0.5rem;
- .actions button {
- background: none;
+ .chirp-btn {
+ background: var(--primary-color);
+ color: white;
- color: var(--text-color);
+ padding: 0.5rem 1.5rem;
+ border-radius: 9999px;
+ font-weight: bold;
+ transition: background-color 0.2s ease;
- .actions button:hover {
- color: var(--primary-color);
+ .chirp-btn:hover {
+ background-color: #1991da;
+ }
+
+ .trending {
+ background: var(--hover-bg);
+ border-radius: 1rem;
+ padding: 1rem;
+ }
+
+ .trend-item {
+ padding: 1rem 0;
+ border-bottom: 1px solid var(--border-color);
+ }
+
+ .category {
+ color: var(--secondary-text);
+ font-size: 0.9rem;
+ }
+
+ .topic {
+ font-weight: bold;
+ margin: 0.25rem 0;
+ }
+
+ .chirps {
+ color: var(--secondary-text);
+ font-size: 0.9rem;
- text-align: center;
+ margin-top: 2rem;
+ background: var(--bg-color);
- margin-top: 2rem;
- @media (max-width: 600px) {
- header h1 {
- font-size: 1.5rem;
- }
+ .footer-nav {
+ display: flex;
+ justify-content: center;
+ gap: 1rem;
+ }
- nav {
- flex-wrap: wrap;
- }
+ .footer-nav a {
+ color: var(--secondary-text);
+ text-decoration: none;
+ font-size: 0.9rem;
+ }
- .chirp {
- flex-direction: column;
- align-items: center;
- text-align: center;
+ @media (max-width: 768px) {
+ main {
+ grid-template-columns: 1fr;
-
- .chirp img {
- margin-bottom: 1rem;
+
+ .sidebar {
+ display: none;
+ }
+
+ .nav-links {
+ display: none;