:root {
   --primary: #4F46E5;
   --secondary: #7C3AED;
   --dark: #111827;
   --light: #F3F4F6;
}

.updates-wrapper {
   background: var(--dark);
   min-height: 100vh;
   color: var(--light);
}

.updates-timeline {
   position: relative;
   padding: 20px 0;
}

.updates-timeline::before {
   content: '';
   position: absolute;
   left: 50%;
   transform: translateX(-50%);
   width: 2px;
   height: 100%;
   background: linear-gradient(to bottom, transparent, var(--primary), var(--secondary), transparent);
}

.update-item {
   display: flex;
   justify-content: center;
   align-items: stretch;
   margin-bottom: 40px;
   position: relative;
}

.update-item:nth-child(odd) {
   flex-direction: row-reverse;
}

.update-date {
   width: 200px;
   text-align: right;
   padding: 20px;
   position: relative;
}

.update-item:nth-child(odd) .update-date {
   text-align: left;
}

.date {
   font-size: 1.1rem;
   font-weight: 600;
   color: var(--primary);
   margin-bottom: 10px;
   display: block;
}

.category-badge {
   display: inline-block;
   padding: 5px 15px;
   border-radius: 20px;
   font-size: 0.8rem;
   font-weight: 500;
}

.category-badge.ai {
   background: rgba(79, 70, 229, 0.1);
   color: #818cf8;
}

.category-badge.ml {
   background: rgba(124, 58, 237, 0.1);
   color: #a78bfa;
}

.category-badge.security {
   background: rgba(239, 68, 68, 0.1);
   color: #f87171;
}

.category-badge.api {
   background: rgba(16, 185, 129, 0.1);
   color: #34d399;
}

.category-badge.ui {
   background: rgba(245, 158, 11, 0.1);
   color: #fbbf24;
}

.update-content {
   width: calc(50% - 100px);
   background: rgba(255, 255, 255, 0.05);
   backdrop-filter: blur(10px);
   border-radius: 20px;
   padding: 25px;
   border: 1px solid rgba(255, 255, 255, 0.1);
   position: relative;
   transition: all 0.3s ease;
}

.update-content:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.update-content::before {
   content: '';
   position: absolute;
   top: 30px;
   width: 20px;
   height: 20px;
   background: var(--primary);
   border-radius: 50%;
}

.update-item:nth-child(odd) .update-content::before {
   left: -60px;
}

.update-item:nth-child(even) .update-content::before {
   right: -60px;
}

.update-content h3 {
   color: white;
   font-size: 1.2rem;
   margin-bottom: 10px;
}

.update-content p {
   color: rgba(255, 255, 255, 0.7);
   margin-bottom: 15px;
}

.update-meta {
   display: flex;
   gap: 20px;
   color: rgba(255, 255, 255, 0.5);
   font-size: 0.9rem;
}

.update-meta span {
   display: flex;
   align-items: center;
   gap: 5px;
}

@media (max-width: 768px) {
   .updates-timeline::before {
       left: 20px;
   }

   .update-item {
       flex-direction: column !important;
       margin-left: 40px;
   }

   .update-date {
       width: 100%;
       text-align: left !important;
       padding: 10px 0;
   }

   .update-content {
       width: 100%;
   }

   .update-content::before {
       left: -40px !important;
       right: auto !important;
   }
}
