/* Specific styles for the blog page. 
  This file ensures that the main portfolio's styles are not affected.
*/

/* --- Base Layout --- */
.article-card {
    background-color: rgba(31, 41, 55, 0.5); /* gray-800 with transparency */
    border: 1px solid #4b5563; /* gray-600 */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 0.75rem; /* 12px */
    overflow: hidden; /* Keeps the image corners rounded */
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.article-card:hover {
     border-color: #4ade80; /* green-400 */
     transform: translateY(-5px);
     box-shadow: 0 10px 15px -3px rgba(74, 222, 128, 0.1), 0 4px 6px -2px rgba(74, 222, 128, 0.05);
}

/* --- Card Image --- */
.article-image-container {
    height: 16rem; /* 256px */
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    transition: transform 0.4s ease;
}

.article-card:hover .article-image {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}

/* --- Card Content --- */
.article-content {
    padding: 1.5rem; /* Slightly reduced padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to fill available space */
}

.article-metadata {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem; /* 14px */
    color: #9ca3af; /* gray-400 */
    margin-bottom: 0.5rem; /* 8px */
}

.article-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600; /* Bolder */
    color: #ffffff;
    line-height: 1.4; 
}

.article-excerpt {
    margin-top: 0.75rem; /* 12px */
    color: #d1d5db; /* gray-300 */
    flex-grow: 1; 
    font-size: 0.95rem; /* 15px */
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.modal-overlay:not(.hidden) {
    opacity: 1;
}

.modal-content {
    background-color: #111827; /* gray-900 */
    border-radius: 0.5rem;
    padding: 2rem;
    width: 90%;
    max-width: 48rem; /* 768px */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #4b5563; /* gray-600 */
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}
.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}


.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: #ffffff;
}

.prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #d1d5db;
    font-family: 'Inter', sans-serif;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    font-weight: 600;
    color: #ffffff;
    margin: 2em 0 1em;
    line-height: 1.25;
}

.prose ul, .prose ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose strong {
    font-weight: 700;
    color: #facc15; /* yellow-400 */
}

.prose em {
    font-style: italic;
    color: #f3f4f6; /* gray-100 */
}

.prose code {
    background-color: #1f2937;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.95em;
    color: #93c5fd; /* blue-300 */
    font-family: monospace;
}

.prose blockquote {
    border-left: 4px solid #4ade80;
    padding-left: 1em;
    padding-top: 1em;
    padding-bottom: 0.5em;
    color: #9ca3af;
    margin: 2em 0;
    font-style: italic;
    background-color: #1f2937;
    border-radius: 0.375rem;
}

.prose hr {
    border: none;
    border-top: 1px solid #374151; /* gray-700 */
    margin: 2.5em 0;
}

.prose img {
    margin: 2em 0;
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}
