/* ===============================================
   📱 PROJECTS NEWS SECTION - MOBILE STYLES
   =============================================== */

/* 📱 TABLET STYLES (768px - 1024px) */
@media (max-width: 1024px) {
  .projects-news-section {
    margin: var(--spacing-3xl) 0 var(--spacing-xl) 0 !important;
    padding: var(--spacing-xl) 0;
  }
  .projects-news-section > .container {
    padding-top: var(--spacing-xl) !important;
  }
  
  .related-work-section + .projects-news-section {
    margin-top: var(--spacing-3xl) !important;
  }
  
  .news-section-header {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
  }
  
  .news-section-header h2 {
    font-size: 2rem;
    gap: var(--spacing-sm);
  }
  
  .news-section-subtitle {
    font-size: 1.1rem;
    padding: 0 var(--spacing-md);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }
  
  .news-image {
    height: 180px;
  }
  
  .news-content {
    padding: var(--spacing-md);
  }
  
  .news-title {
    font-size: 1.1rem;
  }
  
  .news-section-footer .btn-primary {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
  }
}

/* 📱 MOBILE STYLES (max-width: 768px) */
@media (max-width: 768px) {
  .projects-news-section {
    margin: var(--spacing-2xl) 0 var(--spacing-lg) 0 !important;
    padding: var(--spacing-lg) 0;
    background: transparent;
    border: none;
  }
  .projects-news-section > .container {
    padding-top: var(--spacing-lg) !important;
  }
  
  .related-work-section + .projects-news-section {
    margin-top: var(--spacing-2xl) !important;
  }
  
  .news-section-header {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
  }
  
  .news-section-header h2 {
    flex-direction: row;
    gap: var(--spacing-sm);
    justify-content: flex-start;
    margin-bottom: var(--spacing-sm);
  }
  
  .news-section-header h2 .lucide {
    width: 24px;
    height: 24px;
  }
  
  .news-section-subtitle {
    font-size: 0.9rem;
    padding: 0;
    text-align: left;
    color: var(--text-secondary);
  }
  
  .news-grid {
    display: block;
    margin-bottom: var(--spacing-lg);
    padding: 0;
  }
  
  .news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(102, 255, 0, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    transition: all 0.2s ease;
  }
  
  .news-card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 255, 0, 0.1);
    border-color: rgba(102, 255, 0, 0.2);
  }
  
  .news-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    text-decoration: none;
    color: inherit;
  }
  
  .news-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    margin-right: var(--spacing-sm);
  }
  
  .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .image-overlay {
    display: none;
  }
  
  .news-content {
    flex: 1;
    padding: 0;
    min-width: 0;
  }
  
  .news-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .news-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
  }
  
  .news-category {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(102, 255, 0, 0.1);
    color: var(--accent-green);
    border-radius: 12px;
    border: 1px solid rgba(102, 255, 0, 0.2);
  }
  
  .news-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
  }
  
  .news-excerpt {
    display: none;
  }
  
  .news-section-footer {
    padding: 0;
    text-align: center;
  }
  
  .news-section-footer .btn-primary {
    width: auto;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.85rem;
    border-radius: var(--radius-md);
  }
}

/* 📱 SMALL MOBILE (max-width: 480px) */
@media (max-width: 480px) {
  .projects-news-section {
    margin: var(--spacing-xl) 0 var(--spacing-md) 0 !important;
    padding: var(--spacing-md) 0;
  }
  .projects-news-section > .container {
    padding-top: var(--spacing-md) !important;
  }
  
  .related-work-section + .projects-news-section {
    margin-top: var(--spacing-xl) !important;
  }
  
  .news-section-header {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-sm);
  }
  
  
  .news-section-subtitle {
    font-size: 0.85rem;
  }
  
  .news-grid {
    margin-bottom: var(--spacing-md);
    padding: 0;
  }
  
  .news-image {
    width: 50px;
    height: 50px;
  }
  
  .news-content {
    padding: 0;
  }
  
  .news-title {
    font-size: 0.85rem;
  }
  
  .news-category {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  
  .news-date {
    font-size: 0.7rem;
  }
  
  .news-section-footer .btn-primary {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
  }
}

/* 📱 EXTRA SMALL MOBILE (max-width: 320px) */
@media (max-width: 320px) {
  
  .news-section-subtitle {
    font-size: 0.8rem;
  }
  
  .news-image {
    width: 45px;
    height: 45px;
  }
  
  .news-title {
    font-size: 0.8rem;
  }
  
  .news-content {
    padding: 0;
  }
  
  .news-category {
    font-size: 0.6rem;
    padding: 1px 5px;
  }
  
  .news-date {
    font-size: 0.65rem;
  }
}

/* 🎭 MOBILE FOCUS STATES */
@media (max-width: 768px) {
  .news-link:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
    border-radius: var(--radius-lg);
  }
  
  .news-section-footer .btn-primary:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
  }
}

/* 🎪 MOBILE ANIMATIONS */
@media (max-width: 768px) {
  .news-card {
    animation-duration: 0.4s;
  }
  
  .news-card:nth-child(1) { animation-delay: 0.05s; }
  .news-card:nth-child(2) { animation-delay: 0.1s; }
  .news-card:nth-child(3) { animation-delay: 0.15s; }
}

/* 📱 TOUCH IMPROVEMENTS */
@media (max-width: 768px) {
  .news-link {
    min-height: 44px;
  }
  
  .news-section-footer .btn-primary {
    min-height: 48px;
  }
}

/* 🎯 HOVER DISABLE ON TOUCH DEVICES */
@media (hover: none) and (pointer: coarse) {
  .news-card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 255, 0, 0.1);
  }
  
  .news-card:hover .news-image img {
    transform: none;
  }
  
  .news-card:hover .image-overlay {
    opacity: 0;
  }
  
  .news-section-footer .btn-primary:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 255, 0, 0.3);
  }
}
