/**
 * AgriData AI - News Intelligence Styles
 */

/* Main Layout */
.news-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Search Section */
.search-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.search-header h1 i {
    color: var(--primary-green-light);
}

.search-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.search-box textarea:focus {
    outline: none;
    border-color: var(--primary-green-light);
}

.search-box textarea::placeholder {
    color: var(--text-muted);
}

.search-box button {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.4);
}

.search-box button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Search Actions */
.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-random {
    background: linear-gradient(135deg, var(--accent-gold), #B8860B) !important;
    color: var(--primary-dark) !important;
}

.btn-random:hover {
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4) !important;
}

/* Agent Panel */
.agent-panel {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.agent-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.agent-panel-header h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.agents-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.agent-chip {
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.agent-chip.active {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light));
    color: white;
    border-color: var(--primary-green);
    box-shadow: 0 2px 10px rgba(45, 80, 22, 0.4);
}

.agent-chip.active i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Image Prompts Section */
.image-prompts-section {
    margin-top: 1rem;
}

.prompts-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.prompts-toggle:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.prompts-toggle i {
    transition: transform 0.3s ease;
}

.prompts-toggle.expanded i {
    transform: rotate(180deg);
}

.prompts-content {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.prompt-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .prompt-row {
        grid-template-columns: 1fr;
    }
}

.prompt-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.prompt-field label i {
    margin-right: 0.25rem;
}

.prompt-field label i.fa-plus-circle {
    color: var(--success);
}

.prompt-field label i.fa-minus-circle {
    color: var(--error);
}

.prompt-field textarea {
    width: 100%;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    resize: vertical;
}

.prompt-field textarea:focus {
    outline: none;
    border-color: var(--primary-green-light);
}

/* Rating Section */
.article-rating {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.article-rating h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-stars .star {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars .star:hover,
.rating-stars .star.hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

.rating-stars .star.filled i {
    font-weight: 900;
}

.rating-stars .star.filled {
    color: var(--accent-gold);
}

.rating-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* History Section */
.history-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

.history-header h2 {
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-clear-history {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-history:hover {
    border-color: var(--error);
    color: var(--error);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: var(--bg-card-hover);
}

.history-item .history-icon {
    color: var(--primary-green-light);
}

.history-item .history-query {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item .history-rating {
    display: flex;
    gap: 0.15rem;
}

.history-item .history-rating i {
    font-size: 0.7rem;
    color: var(--accent-gold);
}

.history-item .history-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.history-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Progress Section */
.progress-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-status {
    color: var(--text-primary);
    font-weight: 500;
}

.progress-percent {
    color: var(--accent-gold);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.progress-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.step i {
    font-size: 1rem;
}

.step.active {
    background: var(--primary-green);
    color: white;
}

.step.completed {
    background: var(--bg-card-hover);
    color: var(--success);
}

.step.completed i {
    color: var(--success);
}

/* Article Section */
.article-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

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

.news-article {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.article-commodities {
    display: flex;
    gap: 0.5rem;
}

.article-commodities .commodity-tag {
    background: var(--primary-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-gold);
}

.article-text {
    color: var(--text-primary);
    line-height: 1.8;
}

.article-text p {
    margin-bottom: 1rem;
}

.article-text h3 {
    color: var(--primary-green-light);
    margin: 1.5rem 0 0.75rem;
}

.article-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
}

.stat-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.article-sources {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.article-sources h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-sources ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.article-sources li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.article-sources li a:hover {
    background: var(--primary-green);
    color: white;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

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

.gallery-header h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-header h2 i {
    color: var(--primary-green-light);
}

.gallery-nav {
    display: flex;
    gap: 0.5rem;
}

.gallery-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.gallery-container {
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease;
    touch-action: pan-x;
}

.gallery-item {
    flex: 0 0 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnail .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: white;
    font-size: 0.8rem;
}

.gallery-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary-green-light);
    width: 24px;
    border-radius: 4px;
}

.gallery-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.gallery-empty i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-modal {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Old lightbox close button - hidden, using prompt box close instead */
.lightbox-close {
    display: none;
}

/* Floating Prompt Box in Lightbox */
.lightbox-prompt-box {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 20;
    border-bottom: 1px solid rgba(218, 165, 32, 0.3);
}

.prompt-box-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.prompt-box-icon {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-top: 2px;
}

.prompt-box-text {
    color: #ccc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prompt-box-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.prompt-box-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.prompt-box-btn.pdf-btn {
    background: rgba(218, 165, 32, 0.2);
    color: var(--accent-gold);
}

.prompt-box-btn.pdf-btn:hover {
    background: var(--accent-gold);
    color: #000;
}

.prompt-box-btn.close-btn {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    font-size: 1.3rem;
}

.prompt-box-btn.close-btn:hover {
    background: #f44336;
    color: white;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 10;
}

.lightbox-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.lightbox-nav-btn:hover {
    background: var(--primary-green);
}

.lightbox-content {
    padding: 2rem;
}

.lightbox-query {
    margin-bottom: 1.5rem;
}

.query-console {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.console-prompt {
    color: var(--success);
    font-weight: bold;
}

.console-text {
    color: #e0e0e0;
    line-height: 1.5;
}

.lightbox-header {
    margin-bottom: 1.5rem;
}

.lightbox-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.lightbox-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.lightbox-body {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.lightbox-body img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

.lightbox-text {
    color: var(--text-primary);
    line-height: 1.7;
    max-height: 300px;
    overflow-y: auto;
}

.lightbox-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .article-body {
        grid-template-columns: 1fr;
    }

    .article-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .gallery-item {
        flex: 0 0 160px;
    }

    .lightbox-body {
        grid-template-columns: 1fr;
    }

    .lightbox-body img {
        max-width: 250px;
        margin: 0 auto;
    }

    .lightbox-stats {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        flex-wrap: wrap;
    }

    .step {
        flex: 0 0 calc(33.333% - 0.5rem);
    }
}

/* Touch swipe hint */
.swipe-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

@media (pointer: coarse) {
    .swipe-hint {
        display: block;
    }
}

/* ============================================
   Inline Article Images (Designer Agent)
   ============================================ */

.article-inline-image {
    max-width: 120px;
    margin-bottom: 8px;
}

.article-inline-image.left {
    float: left;
    margin-right: 12px;
    margin-left: 0;
}

.article-inline-image.right {
    float: right;
    margin-left: 12px;
    margin-right: 0;
}

.article-inline-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: block;
}

.article-inline-image span {
    display: block;
    font-size: 0.55rem;
    color: #888;
    margin-top: 4px;
    text-align: center;
    line-height: 1.2;
}

/* Two-column article content */
.article-text.two-columns {
    column-count: 2;
    column-gap: 24px;
    text-align: justify;
}

.article-text.two-columns h3 {
    column-span: all;
}

/* Clear floats in article content */
.article-text::after {
    content: "";
    display: table;
    clear: both;
}

/* Lightbox article content with embedded images */
.lightbox-text .article-inline-image {
    max-width: 100px;
}

.lightbox-text .article-inline-image img {
    border-radius: 3px;
}

/* Print/PDF styles for inline images */
@media print {
    .article-inline-image {
        max-width: 80px;
        break-inside: avoid;
    }

    .article-inline-image img {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   News Page - Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
    /* Main Layout */
    .news-main {
        padding: 0.75rem;
    }

    /* Search Section */
    .search-section {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .search-header {
        margin-bottom: 1rem;
    }

    .search-header h1 {
        font-size: 1.1rem;
        gap: 0.5rem;
    }

    .search-header h1 i {
        font-size: 1rem;
    }

    .search-header p {
        font-size: 0.75rem;
    }

    .search-box textarea {
        min-height: 80px;
        padding: 0.75rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .search-box button {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 8px;
        gap: 0.5rem;
    }

    .search-box button i {
        font-size: 0.75rem;
    }

    /* Quick Suggestions */
    .quick-suggestions {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .quick-suggestions span {
        font-size: 0.7rem;
    }

    .suggestion-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.65rem;
        border-radius: 6px;
    }

    /* Gallery Section */
    .gallery-section {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .gallery-section h2 {
        font-size: 0.9rem;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .gallery-grid {
        gap: 0.75rem;
    }

    .gallery-item {
        flex: 0 0 140px;
    }

    .newspaper-clipping {
        width: 140px;
        height: 200px;
    }

    .newspaper-clipping .clip-image {
        height: 65px;
    }

    .newspaper-clipping .clip-content {
        padding: 0.4rem 0.5rem;
    }

    .newspaper-clipping .clip-date {
        font-size: 0.55rem;
    }

    .newspaper-clipping .clip-headline {
        font-size: 0.65rem;
    }

    .newspaper-clipping .clip-summary {
        font-size: 0.55rem;
    }

    /* Article Section */
    .article-section {
        padding: 1rem;
        border-radius: 12px;
    }

    .article-header h2 {
        font-size: 1.1rem;
    }

    .article-meta {
        font-size: 0.7rem;
        gap: 0.75rem;
    }

    .article-body {
        font-size: 0.85rem;
    }

    /* Lightbox */
    .lightbox-content {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 12px;
    }

    .lightbox-header h3 {
        font-size: 0.9rem;
    }

    .lightbox-body img {
        max-width: 200px;
    }

    /* Progress Steps */
    .progress-steps {
        gap: 0.25rem;
    }

    .step {
        padding: 0.4rem 0.5rem;
        font-size: 0.55rem;
        border-radius: 4px;
    }

    .step i {
        font-size: 0.6rem;
    }

    /* Status Display */
    .status-display {
        padding: 0.75rem;
        border-radius: 8px;
    }

    .status-display i {
        font-size: 1rem;
    }

    .status-message {
        font-size: 0.8rem;
    }

    .status-detail {
        font-size: 0.65rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .news-main {
        padding: 0.5rem;
    }

    .search-section {
        padding: 0.75rem;
    }

    .search-header h1 {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .search-box button {
        width: 100%;
        justify-content: center;
    }

    .gallery-item {
        flex: 0 0 120px;
    }

    .newspaper-clipping {
        width: 120px;
        height: 170px;
    }

    .newspaper-clipping .clip-image {
        height: 55px;
    }

    .step {
        flex: 0 0 calc(50% - 0.25rem);
    }
}
