/* Additional custom styles */

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Smooth animations */
.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .search-container {
        position: relative;
        z-index: 60;
    }
}

/* Newspaper-style layout for articles */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    font-family: Georgia, 'Times New Roman', serif;
}

.article-lead {
    border-bottom: 3px solid #e2e8f0;
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
}

.lead-paragraph {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 1.5rem;
    text-indent: 0;
}

.body-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #4a5568;
    text-align: justify;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 2.5rem 0 1.5rem 0;
    border-bottom: 2px solid #4299e1;
    padding-bottom: 0.5rem;
}

.subsection-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.subsection-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 2rem;
    background: #4299e1;
    border-radius: 2px;
}

.feature-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2b6cb0;
    margin: 1.5rem 0 1rem 0;
}

.intro-text {
    font-style: italic;
    font-size: 1.05rem;
    color: #718096;
    margin-bottom: 1.5rem;
    background: #f7fafc;
    padding: 1rem;
    border-left: 4px solid #4299e1;
    border-radius: 4px;
}

.feature-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.considerations-box {
    background: #fef5e7;
    border: 1px solid #f6ad55;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
}

.consideration-list {
    list-style: none;
    padding: 0;
}

.consideration-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.consideration-list li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #ed8936;
}

.article-section {
    margin-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 2rem;
}

.subsection {
    margin-bottom: 2.5rem;
}

.review-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.review-box h3, .review-box h4 {
    color: white;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-specs {
    font-size: 0.9rem;
    opacity: 0.9;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pros, .cons {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
}

/* Responsive newspaper layout */
@media (max-width: 768px) {
    .lead-paragraph {
        font-size: 1.1rem;
    }
    
    .body-text {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .subsection-heading {
        font-size: 1.3rem;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
}