/* Shared Modal Styles for Portfolio Blogs */
.blog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.blog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.blog-modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    color: #333;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.blog-modal-overlay.active .blog-modal-content {
    transform: translateY(0);
}

/* Theme-specific overrides handled via JS or specific classes if needed, 
   but keeping a neutral clean base for now */

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.modal-body {
    padding: 30px;
    line-height: 1.8;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.modal-text p {
    margin-bottom: 20px;
}

/* Dark Mode support for Neon/Space/Tech themes */
.dark-theme-modal .blog-modal-content {
    background: #1a1a1a;
    color: #eee;
    border: 1px solid #333;
}

.dark-theme-modal .modal-header {
    background: #1a1a1a;
    border-bottom-color: #333;
}

.dark-theme-modal .modal-title {
    color: #fff;
}

.dark-theme-modal .close-modal {
    color: #aaa;
}

.dark-theme-modal .close-modal:hover {
    color: #fff;
}