/* News Page Styles - Professional & High-Tech Edition */
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-left .back-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: brightness(0) invert(1);
    z-index: 10;
}

.nav-left .back-icon:hover {
    transform: scale(1.1) translateX(-2px);
}

.nav-left .back-icon:active {
    transform: scale(0.95);
}

.nav-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: scale(0.9);
}

.refresh-btn i {
    color: white;
    font-size: 18px;
}

/* News List Styles */
.news-list-compact {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 15px calc(120px + env(safe-area-inset-bottom)) 15px;
    perspective: 1200px;
}

.news-item-row {
    display: flex;
    align-items: flex-start;
    background: #fff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 166, 81, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: slideInProfessional 0.6s backwards;
}

@keyframes slideInProfessional {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 166, 81, 0.15);
    border-color: rgba(0, 166, 81, 0.3);
}

.news-imgs-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-right: 16px;
}

.news-img-small {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #f0f0f0;
}

.status-badge-absolute {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #ff3b3b;
    color: white;
    font-size: 8px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 59, 59, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.news-info-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
}

.news-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.news-title-row {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-item-row:hover .news-title-row {
    color: #00A651;
}

.news-price-container {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: #00A651;
    font-weight: 800;
    margin-bottom: 8px;
}

.news-price-currency {
    font-size: 14px;
}

.news-price-value {
    font-size: 18px;
    letter-spacing: -0.5px;
}

.news-meta-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #718096;
    font-weight: 500;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-meta-item i {
    font-size: 10px;
    color: #a0aec0;
}

.news-action-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.news-expiry-badge {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 10px;
    font-weight: 600;
    color: #00A651;
    background: rgba(0, 166, 81, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: -0.2px;
}

.news-expiry-badge.expired {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.view-btn-small {
    background: transparent;
    border: none;
    color: #00A651;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.view-btn-small:hover {
    background: rgba(0, 166, 81, 0.08);
    transform: translateX(2px);
}

.view-btn-small i {
    font-size: 10px;
    transition: transform 0.2s;
}

.view-btn-small:hover i {
    transform: translateX(2px);
}

/* Dark Mode */
html.dark-mode .news-item-row {
    background: #1e293b;
    border-color: #334155;
}

html.dark-mode .news-title-row {
    color: #f1f5f9;
}

html.dark-mode .news-meta-flex {
    color: #94a3b8;
}

html.dark-mode .news-img-small {
    border-color: #334155;
}

html.dark-mode .news-action-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.news-row-expired {
    opacity: 0.7;
    filter: grayscale(1);
    pointer-events: none;
}
