/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 10% auto;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-primary);
}

/* Ensure all link modal contents use the Inter font */
.modal-content,
.modal-content h2,
.modal-content p,
.modal-content input,
.modal-content button,
.modal-content .btn,
.modal-content #link-message {
    font-family: 'Inter', sans-serif !important;
}

/* News Modal Content Styles */
.news-modal-content {
    max-width: 700px;
    margin: 5% auto;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mc-green) var(--bg-primary);
    padding: 40px;
}

/* Custom Scrollbar for news modal content in webkit browsers */
.news-modal-content::-webkit-scrollbar {
    width: 8px;
}
.news-modal-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}
.news-modal-content::-webkit-scrollbar-thumb {
    background: var(--mc-green);
    border-radius: 4px;
}

.news-modal-title {
    font-family: var(--font-heading) !important;
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.25;
    text-transform: uppercase;
}

.news-modal-date {
    display: inline-block;
    color: var(--mc-green-bright);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.news-modal-image-container {
    width: 100%;
    max-height: 380px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-modal-text {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 768px) {
    .news-modal-content {
        padding: 25px 20px;
        margin: 10% auto;
    }
    .news-modal-title {
        font-size: 1.6rem;
    }
    .news-modal-image-container {
        max-height: 220px;
        margin-bottom: 15px;
    }
    .news-modal-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

