/* Blog Modal Stílusok */

.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.blog-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.blog-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #32325d;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-modal-close:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

.blog-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

/* Scrollbar stílusok */
.blog-modal-content::-webkit-scrollbar {
    width: 8px;
}

.blog-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.blog-modal-content::-webkit-scrollbar-thumb {
    background: #3b9dd8;
    border-radius: 4px;
}

.blog-modal-content::-webkit-scrollbar-thumb:hover {
    background: #2d7db8;
}

/* Modal Blog Kép */
.modal-blog-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #f8f9fa;
}

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

/* Modal Blog Header */
.modal-blog-header {
    padding: 30px 40px 20px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-blog-header h2 {
    font-size: 2rem;
    color: #32325d;
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.3;
}

.modal-blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.modal-blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal Blog Tartalom */
.modal-blog-content {
    padding: 30px 40px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #32325d;
}

.modal-blog-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #32325d;
}

.modal-blog-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 12px;
    color: #32325d;
}

.modal-blog-content p {
    margin: 15px 0;
}

.modal-blog-content ul,
.modal-blog-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.modal-blog-content li {
    margin: 8px 0;
}

.modal-blog-content strong {
    font-weight: 600;
    color: #32325d;
}

.modal-blog-content em {
    font-style: italic;
}

.modal-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Modal Blog Akciók */
.modal-blog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 25px 40px 30px;
    border-top: 2px solid #e0e0e0;
    background: #f8f9fa;
}

.modal-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #32325d;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-action-btn:hover {
    background: #3b9dd8;
    color: white;
    border-color: #3b9dd8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 157, 216, 0.3);
}

.modal-action-btn i {
    font-size: 1.1rem;
}

/* Reszponzív */
@media (max-width: 768px) {
    .blog-modal-container {
        width: 95%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .blog-modal-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .modal-blog-header {
        padding: 25px 20px 15px;
    }
    
    .modal-blog-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .modal-blog-content {
        padding: 20px;
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .modal-blog-content h2 {
        font-size: 1.4rem;
    }
    
    .modal-blog-content h3 {
        font-size: 1.2rem;
    }
    
    .modal-blog-actions {
        padding: 20px;
        gap: 10px;
    }
    
    .modal-action-btn {
        min-width: 130px;
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .blog-modal-container {
        width: 98%;
        max-height: 98vh;
        border-radius: 8px;
    }
    
    .blog-modal-close {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .modal-blog-header {
        padding: 20px 15px 12px;
    }
    
    .modal-blog-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-blog-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
    }
    
    .modal-blog-content {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .modal-blog-actions {
        padding: 15px;
        gap: 8px;
        flex-direction: column;
    }
    
    .modal-action-btn {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

@media (max-width: 360px) {
    .modal-blog-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-blog-content {
        font-size: 0.9rem;
    }
    
    .modal-action-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}
