/* =========================================
   TECHNOLOGY SECTION CSS
   File: assets/css/sections/technology.css
========================================= */

.technology-section {
  padding: var(--space-8) 0;
  margin: var(--space-3) 0;
}

.technology-section .container {
  width: var(--global-width-percent);
  max-width: var(--global-max-width);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.technology-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--space-2);
}

.technology-title {
  font-size: var(--font-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 0;
  font-family: var(--font-family);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
}

.technology-title:hover {
  color: var(--brand-primary);
}

.technology-title::after {
  content: '→';
  margin-left: var(--space-3);
  font-weight: var(--font-regular);
}

.technology-nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.technology-nav a {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-family);
}

.technology-nav a:hover {
  color: var(--brand-primary);
}

/* Top Row - 3 Featured Articles + Headlines Column */
.technology-top-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.technology-featured-item {
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.technology-featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-3);
}

.technology-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.technology-featured-item:hover .technology-featured-image img {
  transform: scale(1.05);
}

.technology-featured-content {
  display: flex;
  flex-direction: column;
}

.technology-featured-category {
  color: var(--brand-primary);
  font-size: var(--font-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  margin-bottom: var(--space-2);
  display: inline-block;
  transition: opacity var(--transition-fast);
  font-family: var(--font-family);
}

.technology-featured-category:hover {
  opacity: 0.8;
}

.technology-featured-title {
  font-size: var(--font-base);
  line-height: 1.4;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  font-family: var(--font-family);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.technology-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.technology-featured-title a:hover {
  color: var(--brand-primary);
}

.technology-featured-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: var(--font-medium);
  font-family: var(--font-family);
}

.technology-featured-author a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.technology-featured-author a:hover {
  color: var(--brand-primary);
}

.technology-featured-separator {
  color: var(--text-muted);
}

/* Fourth Column - Headlines Only */
.technology-headlines-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.technology-headline-item {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.technology-headline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.technology-headline-category {
  color: var(--brand-primary);
  font-size: var(--font-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  margin-bottom: var(--space-2);
  display: inline-block;
  transition: color var(--transition-fast);
  font-family: var(--font-family);
}

.technology-headline-category:hover {
  opacity: 0.8;
}

.technology-headline-title {
  font-size: var(--font-base);
  line-height: 1.4;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  font-family: var(--font-family);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.technology-headline-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.technology-headline-title a:hover {
  color: var(--brand-primary);
}

.technology-headline-meta {
  display: flex;
  align-items: center;
  font-size: var(--font-xs);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  font-family: var(--font-family);
}

.technology-headline-author {
  color: var(--text-secondary);
}

.technology-headline-author a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.technology-headline-author a:hover {
  color: var(--brand-primary);
}

.technology-headline-separator {
  color: var(--text-secondary);
}

.technology-headline-time {
  color: var(--text-secondary);
}

/* Fourth Column - Headlines With Thumbnails (for Entertainment section) */
.technology-headline-item.with-thumbnail {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.technology-headline-item.with-thumbnail .technology-headline-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  display: block;
  border-radius: 4px;
}

.technology-headline-item.with-thumbnail .technology-headline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.technology-headline-item.with-thumbnail:hover .technology-headline-thumb img {
  transform: scale(1.05);
}

.technology-headline-item.with-thumbnail .technology-headline-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.technology-headline-item.with-thumbnail .technology-headline-category {
  margin-bottom: var(--space-1);
}

.technology-headline-item.with-thumbnail .technology-headline-title {
  font-size: var(--font-sm);
  margin: 0 0 var(--space-1);
}

.technology-headline-item.with-thumbnail .technology-headline-meta {
  color: var(--text-muted);
}

.technology-headline-item.with-thumbnail .technology-headline-author {
  color: var(--text-muted);
}

.technology-headline-item.with-thumbnail .technology-headline-author a {
  color: var(--text-muted);
}

.technology-headline-item.with-thumbnail .technology-headline-separator {
  color: var(--text-muted);
}

.technology-headline-item.with-thumbnail .technology-headline-time {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom Row - 4 Items */
.technology-bottom-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.technology-item {
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.technology-item-image {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-3);
}

.technology-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.technology-item:hover .technology-item-image img {
  transform: scale(1.05);
}

.technology-item-content {
  display: flex;
  flex-direction: column;
}

.technology-item-category {
  color: var(--brand-primary);
  font-size: var(--font-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  margin-bottom: var(--space-2);
  display: inline-block;
  transition: opacity var(--transition-fast);
  font-family: var(--font-family);
}

.technology-item-category:hover {
  opacity: 0.8;
}

.technology-item-title {
  font-size: var(--font-base);
  line-height: 1.4;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  font-family: var(--font-family);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.technology-item-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.technology-item-title a:hover {
  color: var(--brand-primary);
}

.technology-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-weight: var(--font-medium);
  font-family: var(--font-family);
}

.technology-item-author a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.technology-item-author a:hover {
  color: var(--brand-primary);
}

.technology-item-separator {
  color: var(--text-muted);
}

/* =========================================
   RESPONSIVE STYLES
========================================= */

@media (max-width: 1024px) {
  .technology-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  
  .technology-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-2);
  }
  
  .technology-top-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .technology-bottom-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .technology-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .technology-top-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .technology-bottom-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .technology-title {
    font-size: var(--font-xl);
  }
  
  .technology-headline-item.with-thumbnail .technology-headline-thumb {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .technology-section {
    padding: var(--space-6) 0;
  }
  
  .technology-title {
    font-size: var(--font-lg);
  }
}