/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
}

.modal.show {
    display: block !important;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    border: none;
    background: none;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 24px;
    color: #F97316;
    margin-bottom: 20px;
}

.post-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F97316;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

.copy-button:hover {
    background-color: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
}

.copy-button i {
    margin-right: 8px;
}

.copy-success {
    display: none;
    color: #22c55e;
    font-weight: 500;
    margin-left: 10px;
    animation: fadeIn 0.3s ease;
}

.post-content {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    white-space: pre-wrap;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        margin: 0;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        padding: 15px;
    }

    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .copy-button {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

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

    .post-title {
        font-size: 16px;
    }
}