
/* Notion-like styling */
.tech-news-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
}

.tech-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.tech-news-title {
    font-size: 24px;
    font-weight: 600;
    color: #37352f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-badge {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 4px 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.globe-icon {
    font-size: 16px;
}

.news-grid {
    display: grid;
    gap: 16px;
}

.news-item {
    background-color: #f9fafb;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.news-item:hover {
    background-color: #f3f4f6;
    border-color: #e9ecef;
    transform: translateY(-1px);
}

.news-item-number {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.news-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #37352f;
    margin: 0 0 8px 0;
    line-height: 1.4;
    padding-right: 40px;
}

.news-item-summary {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #9ca3af;
}

.news-source {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #6b7280;
}

.spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.last-updated {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.today-note {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #37352f;
    margin: 0;
    padding-right: 40px;
    line-height: 1.4;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.modal-summary {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 24px;
}

.modal-details {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.modal-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-details p {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.read-more-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .tech-news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tech-news-title {
        font-size: 20px;
    }

    .news-item-title {
        font-size: 15px;
    }

    .news-item-summary {
        font-size: 13px;
    }

    .modal-content {
        max-height: 90vh;
        margin: 10px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-summary {
        font-size: 15px;
    }
}
